05-21-2008 10:10 AM
05-22-2008 06:35 AM - edited 05-22-2008 06:36 AM
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
05-26-2008 02:12 AM
Ray,
That has helped, thanks for the pointer to an example.
Simon