NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can TestStand 3.1 have an expression (or variable) for a numeric limit in a numeric limits test?

All I see is a chance to enter constants in the high and low limits.
What about a local variable?
0 Kudos
Message 1 of 5
(3,929 Views)
This function is not possible in TestStand 3.5 or earlier.  You can use a pre-expression to set the value of a limit.  For example, Step.Limits.Low = 15 is a valid pre-expression.
 
Allen P
NI
0 Kudos
Message 2 of 5
(3,921 Views)

What happens with the numeric limit settings in the edit limits dialog box?

If it's a pre-expression, would they get over-written?

 

 

0 Kudos
Message 3 of 5
(3,921 Views)
The edit-time copy of your sequence remains unchagned with the constant values.  The run-time copy is updated.  Since the pre-expression always executes before the code does, it is essentially the same as having an expression for the limit.
 
The edit dialog box, since it only touches the edit-time copy of your sequence, will keep whatever constant values you select for it.
 
Allen P.
NI
Message 4 of 5
(3,912 Views)

Hi,

There is an example in the teststand examples folder which will allow you to use an expression in the limits file.

This maybe a be a solution for you.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 5 of 5
(3,905 Views)