06-02-2025 04:54 AM
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.
Solved! Go to Solution.
06-02-2025 06:03 AM
What does the LabVIEW application do ?
Does it have access to the TestStand engine ?
06-02-2025 09:07 AM
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.
06-02-2025 07:29 PM
Have you seen this NI Doc:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000owsxCAA&l=en-US
06-03-2025 07:17 AM
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.
06-03-2025 09:46 AM
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.
06-10-2025 07:22 AM
I have recompiled to a dll and now it works.
Thanks.