05-23-2019 04:11 AM
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?
05-23-2019 06:46 AM
The Evaluate() command should help you out.
05-23-2019 08:00 AM
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'.