Call Labview generated EXE with Parameters
Hi
I have generated an exe in a Lab project(bcos of the no of VIs = 300)
I want to call this EXE in Teststand with Parameters
how to achive this
mytry1) as executable but the cluster outs cant be exported to teststand
mytry2) as a dll called in Teststand -> I cant see the outs (it just provides one return value)
Attachments:
sapouterror.PNG 190 KB
Dear aparab,
does the following article help with the DLL call?
http://digital.ni.com/public.nsf/allkb/22BF02003B4588808625717F003ECD67
Kind regards
Similar Messages
-
How to call a AM method with parameters from Managed Bean?
Hi Everyone,
I have a situation where I need to call AM method (setDefaultSubInv) from Managed bean, under Value change Listner method. Here is what I am doing, I have added AM method on to the page bindings, then in bean calling this
Class[] paramTypes = { };
Object[] params = { } ;
invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
This works and able to call this method if there are no parameters. Say I have to pass a parameter to AM method setDefaultSubInv(String a), i tried calling this from the bean but throws an error
String aVal = "test";
Class[] paramTypes = {String.class };
Object[] params = {aVal } ;
invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
I am not sure this is the right way to call the method with parameters. Can anyone tell how to call a AM method with parameters from Manage bean
Thanks,
San.Simply do the following
1- Make your Method in Client Interface.
2- Add it to Page Def.
3- Customize your Script Like the below one to Achieve your goal.
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
operationBinding.getParamsMap().put("username", "oracle");
operationBinding.getParamsMap().put("role", "F1211");
operationBinding.getParamsMap().put("Connection", "JDBC");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
return null;
i hope it help you
thanks -
T-sql 2008 r2 place results from calling a stored procedure with parameters into a temp table
I would like to know if the following sql can be used to obtain specific columns from calling a stored procedure with parameters:
/* Create TempTable */
CREATE TABLE #tempTable
(MyDate SMALLDATETIME,
IntValue INT)
GO
/* Run SP and Insert Value in TempTable */
INSERT INTO #tempTable
(MyDate,
IntValue)
EXEC TestSP @parm1, @parm2
If the above does not work or there is a better way to accomplish this goal, please let me know how to change the sql?declare @result varchar(100), @dSQL nvarchar(MAX)
set @dSQL = 'exec @res = TestSP '''+@parm1+''','' '''+@parm2+' '' '
print @dSQL
EXECUTE sp_executesql @dSQL, N'@res varchar(100) OUTPUT', @res = @result OUTPUT
select @result
A complicated way of saying
EXEC @ret = TestSP @parm1, @parm2
SELECT @ret
And not only compliacated, it introduces a window for SQL injection.
Erland Sommarskog, SQL Server MVP, [email protected] -
Best practice for calling an AM method with parameters
Which will be the best way to call an AM method with parameters from a backing bean.
I usually use the BindingContainer to get the operation binding and then call execute function. But when the method have parameters, how to do it?
ThanksHi,
same:
operationBinding.getParamMap().put("argument1Name", argument1Value);
operationBinding.getParamMap().put("argument2Name", argument2Value);
operationBinding.execute();
Frank -
Calling portal v2 pages with parameters in a jsp
Hello everybody,
I'm currently trying to create, in a jsp, a link to a portal-v2 page with parameters.
Practically :
[JSP / Portlet 1]
- a 1st jsp generates some links, all to the same page but each sets a different value to a parameter (for example a productId in a list).
[JSP / Portlet 2]
- a 2nd jsp gets this parameter and use it (for example it displays the details of the chosen product).
So the 1st portlet would be jsp (coded by a portlet designer) and clicking a link would lead to another page (chosen by a page designer) which would hold the 2nd portlet (= 2nd jsp, coded by the same portlet designer).
Writing the second jsp is easy : getting parameters is described in many examples and pdk articles.
But I can't find the java methods to use to generate the link. More precisely I don't know how to call the portal page (which would then be a jsp1's parameter). Adding the parameter is well described in the jpdk API-Doc.
I've tried to use portal events but they seem to work only in an html form. So I supposed it was a wrong way.
As I've lost myself so many times in the API-Doc and I didn't find any jpdk sample about that, I would be really thankfull if someone has an idea (may I hope for a sample code ? :-)
Thanks.
Jean-RochI'm having a similar problem!
I have a JSP page which I have published as a portlet to Portal. The JSP portlet is placed on Portal a page. I need to call this Portal page with some parameters in the URL, which should get passed to the JSP portlet.
In the JSP portlet I used this syntax in release 1 to retrieve the URL parameters:
String p_itemID = request.getParameter("item_id");
That worked great in release 1, but not in release 2.... I think the problem is that you need to define which parameters a portlet has, then map those portlet parameters to page parameters in the page properties. In dynamic page - portlets you define bind variables to accomplish this. But how do you do in JSP portlets? When you try to map Page Parameters to the JSP portlet you'll find that Portal doesn't think that the JSP portlet has any parameters. Hence the page parameters does not get passed to the portlet.
(More info: JDBC----getImportedKeys() )
I've looked at the Multipage example and the forminput example. But I don't see how pass a parameter in the URL to the very first JSP portlet from looking at those examples. I do see how you can pass parameters to the next JSP portlet, but that's not my problem. Maybe I'm missing something obvious...
Any ideas? -
Embed labview generated code with c++ gui application
Hey everyone ,
I am very new to labview and trying to learn it ... but before that i wanted to make sure a doubt which i have in my mind , the problem is that i have a realtime GUI application built on c++ widgets and i want to change the existing DSP block in this application with the code generated by using the LABVIEW , i am sorry that have very
less amount of knowledge regarding labview so i turn up with thread ... So can generate c++ code for the DSP blocks designed in labview ... if yes how and if not why . Any
sincere help will be appreciated . And I very much apologise for any mistakes in my question .
ThanksTonph wrote:
Thanks rolf, is it possible that i use labview to disign my DSP block only and the output be fed to my custom c++ blocks and also wxwidget GUI ... suggest some means thanks ...
Well, have you followed the link I gave in my post? You can download an evaluation version of the add-on and try it out in LabVIEW. It generates C code, not C++, but that should be no problem, since it is very easy to call C code from a C++ application. I can't vouch for the suitability of this add-on for you, nor do I know the exact price range so that are certainly things you have to do for your own.
As to nathans solution, that could work too. If your application is for Windows, or MacOS X, or Linux you can create a shared library from your LabVIEW code and call it as such from your C++ application.
Personally I would find it a rather roundabout way to include LabVIEW generated code in a wxWidget application. One of the strengths of LabVIEW is not only signal acquisition and analysis but also simple GUI design, at least as long as you are after a functional GUI, and not a very specific style of a GUI. So I would never even consider to do the GUI part with anything but LabVIEW if some other parts are already to be done in LabVIEW.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Call a Transaction iView with parameters
Hello,
can anyone help me with the following problem:
I'll just tried to call the transaction RECN with a transaction iView. When I test the iView it works but not with any parameters in the URL.
I'll tried the parameters fix in the iView properties but without any result.
Can someone tell me the correct syntax? I'll tried everything I can find in the SAP help and here in the forum.
Have someone a how to for calling transaction iView with dynamical parameters?
Thanks for help!
Best regards
MartinMartin,
Have you had a look at these yet?
http://wiki.sdn.sap.com/wiki/display/EP/StartanSAPtransactionfromaURL
How to launch SAP transaction & pass parameters via URL
Cheers!
Sandeep Tudumu -
Calling ORACLE Store Procedure with parameters in user define function
Hi everybody,
We have a scenario connecting Oracle DB thru JDBC adapter.
We have to call store procedure with input parameter and output parameter to retrieve data from DB. The implementation was made using JDBC adapter by building the correct XML message with EXECUTE action, and it works fine.
Now we need to use DB lookup within mapping. I wrote users define function with SELECT statement (using the JDBC adapter) and it works fine but I need to call store procedure in ORACLE instead of SELECT statement.
I found lot of examples concerning DB lookup but none of them explained how to write UDF calling store procedure in ORACLE with input and output parameters.
I am looking for an example.
Thanks in advance,
GigiI agree with you, but issue is we have lots of existing store procedure, which we need to call where damn required. I am sure those will be few but still i need to find out.
If you think you are going to get existing MS Stored Procedures or Oracle Packages that had nothing to do with the ORM previously to work that are not geared to do simple CRUD operations with the ORM and the database tables, you have a rude awakening
coming that's for sure. You had better look into using ADO.NET and Oracle Command objects and call those Oracle Packages by those means and use a datareader.
You could use the EF backdoor, call Oracle Command object and use the Packages, if that's even possible, just like you can use MS SQL Server Stored Procedures or in-line T-SQL via the EF backdoor.
That's about your best shot.
http://blogs.msdn.com/b/alexj/archive/2009/11/07/tip-41-how-to-execute-t-sql-directly-against-the-database.aspx -
Calling DB2 Stored procedure(with parameters) from powershell
Hi
I am trying to call a DB2 stored procedure that has parameters from Powershell scrip and I am not able to can some one help me here?
$ServerName = 'XXXX'
$dbalias='XXXXX'
$conn_string = "Provider=IBMDADB2;DBALIAS=$dbalias;Uid=;Pwd=;"
$conn = new-Object system.data.Oledb.OleDbconnection
$conn.ConnectionString = $conn_string
$conn.open()
$query="CALL DBID_CONTROL.GET_TABLE_MAINT_CTL(?,?,?,'MSAS','DATABASE_CONNECTIONS_CUBE','CUBE_PARTITION');"
$cmd = new-Object system.data.Oledb.OleDbcommand($query,$conn)
$ds=New-Object system.Data.DataSet
$da=New-Object System.Data.OleDb.OleDbDataAdapter($cmd)
$da.Fill($ds) [int]$cur_utc_date_key = $ds.Tables[0].Rows[0][0]
$cur_utc_date = $ds.Tables[0].Rows[0][1]
###list current date key & current date values
write-output "current date key value is $cur_utc_date_key"
write-output "current date value is $cur_utc_date"
write-output " "
ThanksHi
This is the error message i get when i run the script
Exception calling "Fill" with "1" argument(s): " CLI0100E Wrong number of parameters. SQLSTATE=07001"
At line:45 char:10
+ $da.Fill <<<< ($ds)
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : DotNetMethodException -
Call graphical calc view with parameters
Hello,
We want to call a graphical calculation view that requires parameters via CE functions.
Is this possible? How can we do that?
Thanks,
Oshrit.Hello,
We still don't know, how is it possible to select from CV with parameter through CE function.
Thanks,
Amir -
Call Oracle Stored Procedure with Parameters from Windows Batch File
Hi,
I have an oracle procedure that requires two parameters to execute, start date and end date as such:
CREATE OR REPLACE PROCEDURE insert_orders(
pSTART_DT IN varchar2
, pEND_DT IN varchar2
I want to create a windows batch file to execute the procedure but want to be able to specify the parameters (ie start and end dates) in the batch file as opposed to changing the sql file that the batch file uses to execute the procedure but I don't know what the syntax is. I tried the following but it still doesn't work.
Sql File: call_insert_orders.sql
execute insert_orders('&1','&2');
exit
Batch File:
sqlplus username/password @call_insert_orders.sql %01-jan-2010% %01-jan-2011%
When I execute the batch file, my DOS window still prompts me to enter value 1 so I think it recognizes that there is a variable being used but is not able to fill in the actual value I specify. I'm not an experienced DOS/Windows Batch File person so I'm guessing it's my syntax that's screwed up. There is not a lot of documentation on this subject matter hence my post on this forum. Any helps would be appreciated.
ThanksHello,
Just try the same DOS command without all the % sign.
In MS-DOS, the % at the beginning and at the end of a string are for variables. Which means your batch is looking for a variable called 01-jan-2010 and a variable called 01-jan-2011, but those are the values you want to pass, not the name of variables.
As they are not defined, nothing is passed to the sqlplus script, and that is why you are prompted for values.
Hope it will help.
Regards,
Sylvie -
Call pl-sql function with parameters All
I want to call a procedure inside Discoverer; i know how to do that. I have three page elements ; when i choose specific value for each one my function work properly.
When i choose <All> like a value for any page element ; funtion doesn't run properly. We decide to display the input value when i call function; when i choose <All> value i can't see the value of the parameter. I put nvl(P1,'ABC') and i can't see the value of the parameter.
In Discovere; when we choose <All> value what is the real value or character used to call function.
Thanks
Marcsee my function
FUNCTION "F_SSDW_TEMPS_NET_FONCT_MIN"("P_NO_CENTRE_DISTR" IN NUMBER,
"P_ID_QUART_TRAVAIL" IN NUMBER,
"P_CODE_EQUIPEMENT" IN VARCHAR2 ,
"P_DATE_TRANSACTION" IN DATE ) RETURN VARCHAR2 IS
CURSOR CRS_TEMPS_NET_FONCT_MIN IS
SELECT SUM(NVL(EFF_REMPL.TEMPS_NET_FONCT_MIN,0))
FROM SSDW_EFF_REMPL EFF_REMPL,
SSDW_EFF_REMPL_QUART_TRAVAIL EFF_QUART
WHERE EFF_REMPL.NO_CENTRE_DISTRIBUTION = P_NO_CENTRE_DISTR
and EFF_REMPL.id_quart_travail = EFF_QUART.ID_QUART_TRAVAIL_CENTRE_DISTR
and EFF_QUART.quart_travail = P_ID_QUART_TRAVAIL
AND EFF_REMPL.CODE_EQUIPEMENT = decode(UPPER(P_CODE_EQUIPEMENT),'TOUS',EFF_REMPL.CODE_EQUIPEMENT, P_CODE_EQUIPEMENT )
AND TRUNC(EFF_REMPL.DATE_TRANSACTION) = TRUNC(P_DATE_TRANSACTION);
V_TEMPS_NET_FONCT_MIN NUMBER;
BEGIN
OPEN CRS_TEMPS_NET_FONCT_MIN;
FETCH CRS_TEMPS_NET_FONCT_MIN INTO V_TEMPS_NET_FONCT_MIN;
CLOSE CRS_TEMPS_NET_FONCT_MIN;
RETURN ('ZZ'||to_char(P_CODE_EQUIPEMENT||'ZZ');
END;
I know how to use a function inside discoverer; my question is ; for my four input parameters ( each one correspond to a page-element )
My question is ; if i decide to choose to select the value <All> for equipement code; what will be the real value passed in parameter to my function.
Like you can see in my code ; i decide to return the parameter in value.
When i select <All> the output parameter equal nothing ; i see absoltely nothing in screen ; i don't see 'ZZ'
Thanks
Marc -
How to create a activex control to execute cmd.exe with parameters?
Hi,
Is there any way to execute a cmd.exe on client side using activex.
currently i am using vs-2013
Please help i have no idea about activex control.
PawanNo, there is certainly no server side setting that will allow you to do this. Please refer to the following links for more information:
http://stackoverflow.com/questions/1791511/run-exe-from-client-side
http://stackoverflow.com/questions/5787200/how-to-open-command-prompt-from-my-application-client-side
http://p2p.wrox.com/javascript-how/24362-how-call-shell-cmd-open-exe-clientside.html
Please remember to mark helpful posts as answer and/or helpful. -
JDevoloper Team - How do you call a plsql procedure with parameters
how can i call a backend pl/sql procedure from a java form in the front end using the same database session as the business project?
How can i pass parameters from a front end ajava form to an entity's EntytiImpl objectKusan,
It's not an exact match to your question, but I believe this HOWTO contains a sample of what you are trying to achieve.
Look for handleStoredProcSelect() or one of the other handleStoredProcXxxxx() methods in:
HOWTO: Basing BC4J Entity on Stored Procedure
http://technet.oracle.com:89/ubb/Forum2/HTML/006400.html
We are maintaining an archive of these HOWTO postings on the JDeveloper Documentation page here on OTN.
http://technet.oracle.com/docs/products/jdev/listing.htm -
Hello everybody,
I created a oracle report i.e Bank Book having banks transactions receipts and payments and opening balance w.e.f 01-jul-2014. parameters are bank code, from_date and to_date. opening balance calculates (return ope from table bankinfo +total receipts-total payments). reports runs correctly via report builder. balances are ok. but the problem is when i run this report via oracle form opening balance return only ope from table bankinfo and skips total receipts-total payments.....
i dont think so why this happend at all. some body help me...
thanks
Abdul SalamHi ,
This community is to discuss Oracle Application Server specific issues, you can post this query in for better response:
Oracle Reports (MOSC)
Regards,
Prakash.
Maybe you are looking for
-
How can I disable backup password from I tune?
how can Idisable backup password from Itune ?
-
How to make a form for input in web interface builder
Hi expert: How to make a form for input in web interface builder?I have already used it to do PS planning, but I don't know how to draw lines and checkboxes . Thanks in advance. Allen
-
Error when when trying to migrate existing ReportServer DB to SSRS 2008 R2
While configuring Reporting Services 2008 R2, I tried to use an existing ReportServer DB which was migrated from our old 2005 SQL Server instance. When it was attempting to finish the Change Database wizard, it throws an error under "Applying connec
-
Hello, I use Panther 10.3.9 and have 640 RAM. I just had problems with the computer (logic board) and fixed them. But Safari keeps crashing. I wanted to re-install it, but couldn't find any download except for the update, 1.3.1, which is what I'm usi
-
Which are the tables updated in SRM and R/3 System for SC created?
Hi, I want to know which are the tables updated in SRM system and also in R/3 system, when a Shopping Cart is created. Also how do i get the PO number for the Shopping Cart created. Thanks. Regards. Rahul