NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Expressions and Defining High/Low Limits

I have an accuracy requirement to assign a 1.5% and a 1% High/Low  from a previous test.  The previous test is a Numeric Array where the first 12 values have to be assigned a 1.5% limit and the remaining 4 have a 1% limit.  
 
Is there a way to do two while loops on the same step or do I have to break out each element in the array and define its own Parameter.
 
So basically I have something like this so far:
 
First test with post expression:
 

Parameters.Test

= Step.NumericArray

Then I have an expression step with the loop options going 1-16 with this... 

RunState

.NextStep.Result.Measurement[ RunState.LoopIndex ].Limits.Low = (Parameters.Test[ RunState.LoopIndex ] * 0.985),

RunState

.NextStep.Result.Measurement[ RunState.LoopIndex ].Limits.High = (Parameter.Test RunState.LoopIndex ] * 1.015)

 

 

But as you see that will add a 1.5% to all of them...Do I have to break out each element in the array individually?? Or is there a way to modify that expression to make the last 4 values of my array multiply by .99 and 1.01?

Thanks

 

 

Message Edited by Roons1159 on 02-20-2007 03:22 PM

0 Kudos
Message 1 of 2
(2,453 Views)
I got it.. I didn't know I could define paramters for any given step in a sequence, only thought Step, previous step, and next step...
0 Kudos
Message 2 of 2
(2,447 Views)