NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand - change test limits based on a previous test result.

Hi there.

 

Is there a way of setting limits during a test? What we want to do is take a measurement, read back the result, and based on this adjust the test limits later on in the test sequence.

 

TIA

Jim.

LABOR OMNIA VINCIT
0 Kudos
Message 1 of 3
(2,895 Views)

You can set the limits to a variable and then modify the variable. Alternatively you can access the limits directly in the Step.Limits container. e.g.:

 

Step.Limits.Low = Step.Result.Numeric + 1

 

 

If you decide to modify the limits in one of the step expressions, be aware that the post expression happens before the status expression, which is where the pass/fail value is determined:

https://www.ni.com/docs/en-US/bundle/teststand/page/step-execution.html

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 3
(2,817 Views)

I would create a local variable and in the post expression for the step where you take the measurement, add something like Locals.Variable=Step.Result.Numeric

 

Then, in your later step, make the limit utilize Locals.Variable

0 Kudos
Message 3 of 3
(2,262 Views)