NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get variables from a LV vi in a SubSequence back into the MainSequence?

I am using TestStand 3.0 and Labview 7.0
0 Kudos
Message 1 of 3
(3,170 Views)
Hi sharlan,

There's two thing you need to do here.
First, return the value stored in your variable from the VI into a SubSequence.
Secondly, pass that value back from the SubSequence call to the MainSequence.

Let's do the second part first. In your SubSequence, you will need to define a variable of the right type in the Parameters Group window.

When you Specify your VI in your TestStand step in the SubSequence, set your VI to return the contents of your variable via the VI's connector pane. In the Specify Module dialog you can then assign a TestStand Variable to the output of the VI. This variable will be the new variable you created in the Parameters Group. for example Parameter.MyVIResult.

To complete the task, in your MainSequence for the SubSequence ca
ll. Invoke the Specify Module Dialog again for the SubSequence Call step. This time in the Parameters list at the bottom of the Dialog will be your new variable being passed back. Now you need select this and assign a variable within the MainSequence, probably a Local.

Now when your MainSequence calls the SubSequence which calls your VI. You variable will be returned back from your VI to the Parameters variable in the SubSequence and when the SubSequence returns back to the MainSequence, it will then be returned to your Local variable.

Hope this is clear
Regards
Ray Farmer
Your
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,170 Views)
Ray, Thanks for your help. Your response was very helpful.

sharlan
0 Kudos
Message 3 of 3
(3,170 Views)