NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing values from sub sequence to caller

Hi All
I am using TestStand 4.0.
In the setup of my top level sequence I call a sub sequence to calibrate RF cable losses on the test site. These cable losses need to be passed back up to the top level sequence so they can then be stored and used throughout the rest of the program. Problem is I have tried File globals and Parameters but cannot get the information to flow back up the tree. The reference manual says I can do this, but doesnt say how or give examples. I'm sure it's just a case of setting the right flags or passing by reference etc but I've just about lost patience with it. We don't want to use Station globals as these RF cable losses are only relevant to this program.
0 Kudos
Message 1 of 4
(5,545 Views)
Hi IanR,
 
You have to pass your parameters as reference.
Check out this simple example.
 
Greetings
 
Juergen
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 2 of 4
(5,533 Views)
Ian,
 
You need to set the Parameter in the sequence as 'by Reference'. Infact, when you insert a variable in the Parameters, by default it is 'by reference'.
 
This allows you to pass data back to the caller. eg if you had a boolean called Status in Parameters. Then in your Sequence you could set Parameters.Status = True. Caller Step would receive Status as True into the variable you sepecified in the Parameters list in the Edit Sequence Call dialog.
 
Have a look at the Computer Motherboard Test Sequences.seq in TestStand examples demo folder, In CPU Diagnostic Sequence.seq in the MainSequence is a boolean called CPUFail that is passed back to the Caller sequence.
 
Hope this helps
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 4
(5,532 Views)

Thanks for your help with this. I'm now getting the results I want

 

Regards

IanR

0 Kudos
Message 4 of 4
(5,519 Views)