NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating expressions with values obtained in a step

How to aquire a value from a step, calculate the value with an expression and use the new calculated value to compare another value aquired in another step
0 Kudos
Message 1 of 2
(2,643 Views)
Hi,

There are a few steps included in implementing your issue.

1) Return a value from a code module as an output or a return value (depending on what adapter you are using) and store this in a local variable.

2) Run your calculation on the variable in either the Post Expression of the previous step or in a separate Statement step and store this in another local variable.

3) Call another code module to return the second value and store this in a local variable.

4) Call another code module to compare the two locals variables or use a statement step to compare them.

Hope this helps you in your applications.

Thanks,
Caroline
Natioanl Instruments
Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments
0 Kudos
Message 2 of 2
(2,623 Views)