LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I pass in continuous value from labview to teststand?

Hello
 
I want to run a vi using teststand. I want this vi to send values to teststand. My problem is that the value is only updated at the end of the vi execution and I want to get the value before the end of the vi execution. If somebody can help me ...
 
Thanks
 
Corentine 
0 Kudos
Message 1 of 4
(2,772 Views)
Corentine,

you can think of TestStand calls to LabVIEW-VIs just like functioncalls in C/C++. The main continues running only if the subroutine is fully executed. Furthermore, LV returns values to the parameters (connector block) only at the end of the execution of the VI.

So you cannot use "simple VI calls" in your sequence if you need datatransfer during execution from steps. If you like to do something like this, the easiest way would be to create a VI which runs continuously in the background and supplies data via mechanisms like Queues (if executed in the same instance) or TCP/IP. In the stepmodules you can retrieve the data when needed.

hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,766 Views)
Thanks for your answer.
I would like to know if it's possible to set the value using activeX functions?? instead of queues..
 
Corentine
0 Kudos
Message 3 of 4
(2,756 Views)
Corentine,

you can pass data directly to TestStand from your VI if you have created variables to contain the data in TestStand. Pass the ThisContext as SequenceContext to the VI. You can use the SequenceContext to get/set properties (wich means variables here) by the appropriate functions from the TestStand palette. The lookup string you need would be the property path you can copy from TestStand.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,736 Views)