From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,405 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,397 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,397 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,388 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,381 Views)