NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Parameters

Hi,
 
In a sub sequence I have a precondition
                                   Parameters.ModuleDACCalStatus[ RunState.LoopIndex+1 ] == False
In the same sequence I have a Sequence File Global ModStatusArr (An array of numbers)
 
Would thest two things be related?
 
What is Parameters. about, how dose it differ from File Global (which is for this Sequence only), Station Global(for all Sequence) and Local.
 
Thanks for the help
Simon   
 
0 Kudos
Message 1 of 3
(3,272 Views)

Hi,

Parameters of a sequence are similar to parameters of a function in C/C++.

therefore if you have a boolean "bool_arg" as the parameter of a Sequence "MySequence", in your Sequence Call step would look like

Call MySequence(Locals.bool) where the value of Locals.bool is passed into the Sequence MySequence. Within MySequence that value is passed to Parameters.bool_arg.

Like C/C++ you can also return the value back to the caller, this is done by setting the Parameters.bool_arg to "pass by reference" and this setting is found when you highlight the bool_arg in Parameters and select right mouse click. The default setting is "pass by reference" so if you dont want the value being passed back you have to deselect this setting.

Hope this helps.  (if you look at the example Computer Motherboard Test Sequence in Teststand\example\demo\ you will seeing how parameters are being used)

Regards

Ray Farmer



Message Edited by Ray Farmer on 05-22-2008 12:36 PM
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,258 Views)

Ray,

 

That has helped, thanks for the pointer to an example.

 

Simon

0 Kudos
Message 3 of 3
(3,218 Views)