NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Force expression to be value

I have a subsequence which will evaluate a value.

In this subsequence I want to use the low limit of the calling step(the subsequence) using 'Runstate.CAllingStep.Limits.Low'.

When I give a low limit value at the subsequence then it works, but when I give a variable as low limit it becomes an expression.

 

The only way it will now work is to make the variable a fileglobal ofcourse.

How can I somehow force teststand to use the value in the low limit and not the expression?

 

0 Kudos
Message 1 of 3
(2,274 Views)

The Evaluate() command should help you out.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(2,254 Views)

A possible way is using de code below in the pre-expression of the subsequence.

Step.Limits.Low = Locals.numbers[2],
Step.Limits.High = Locals.numbers[7]

 

When using 'evaluate(local.num)' in the limits it will give as a limit 'evaluate(local.num)' as a 'lowExpr' of 'highExpr'.

 

 

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