LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a value from a Labview-built executable to a TestStand variable

Solved!
Go to solution

I want to pass a value from a Labview-built executable to a TestStand variable. I can save the value in a text file or in the Clipboard, but I would like to make the call with a variable_name whose value should be updated by Labview.

 

I would appreciate if an example of labview code for this task is shared. 

 

0 Kudos
Message 1 of 7
(310 Views)

What does the LabVIEW application do ? 

Does it have access to the TestStand engine ? 

 

 

0 Kudos
Message 2 of 7
(298 Views)

The Labview code receives a number and performs some mathematical and logical processes, answering with the result number.

TestStand passes the number to be transformed (Property Node and Application: Command line Arguments included in Labview).  The question is how to define Labview code to send the result number to a Variable in TestStand.

 

0 Kudos
Message 3 of 7
(266 Views)
0 Kudos
Message 4 of 7
(233 Views)

Thank you for your interest. I know the testStand options calling an executable. The Standard output saves the result in a variable or in a file, but the issue is I don´t know how to configure Labview file output to be transferred. The console output isn´t an option for me because I have parallel executions and results could be mixed.   I have done with an text file, but I would like to avoid multiple writing/readings in a text file.

0 Kudos
Message 5 of 7
(211 Views)
Solution
Accepted by topic author cjsSP72

On Windows OS, no exe can return a parameter, regardless what programming language you use.

 

If you have the source code, you can recompile your code to a dll.  Then you can return parameters.

Or you can change your code to write to TestStand variables (ActiveX) if you can pass Sequence Context in.

 

George Zou
Message 6 of 7
(200 Views)

I have recompiled to a dll and now it works. 

 

Thanks.

0 Kudos
Message 7 of 7
(167 Views)