NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LV and Test Stand use a previous result as an input parameter

Hi Im a newbie to TestStand.
I wish to use a result from one step as an input parameter for a later step. Is there a simple method to achieve this?. I have succesfully passed fixed parameters in.
Is there any examples or documentation that shows how to achieve this.?
thanks
0 Kudos
Message 1 of 4
(3,120 Views)
Create a local variable in TestStand. In the post expression of one step, set the local variable to the result of that step (Locals.Var1 = Step.Result.Numeric). In the next step, use this local variable as the input parameter.
- tbob

Inventor of the WORM Global
Message 2 of 4
(3,120 Views)
Hi tbob , I've tried this but get a run time error that says TS does not recognise Var1. But I havnt declared it (as implied in your first sentence ?).How do you go about this ?

thanks again dht
0 Kudos
Message 3 of 4
(3,120 Views)
hi dht,

You can do this statically.
In the SeqEditor with your sequence, that you wish the local to apply, in view.
Select the Locals Tab.
Now in the right hand window, right mouse click and select Insert Locals and the type of variable you require.
Change the name to Var1.
Now your can run your sequence.

Hope this helps.
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,120 Views)