NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Limit Setting in one Pre-expression

Hi All,

 

Currently, I am using Teststand 2017 and I am doing two different (22 ohms and 55 ohms) resistance measurement. I am trying to use the following Pre-expression (Parameters.Measurement == Step.Result.Numeric?( Step.Limits.Low=15, Step.Limits.High=25):( Step.Limits.Low=48, Step.Limits.High=58) to set the limits for both measurement. Basically, I am what I trying to do is whenever I am measuring the 22 ohms resistance and I want set the proper limit (Lower limit 15 and Upper Limit 25) and same for 55 ohms measurement.  I am not sure whether that pre-expression would work. Any help would be greatly appreciated.

 

Thanks,

WJ

0 Kudos
Message 1 of 2
(2,097 Views)

Pre expression is before the step code module is called. You need to use the post expression. The other thing is the returned measurement isn’t going to be exactly 22 or 55 so your expression isn’t going to be TRUE. You need to find some other method to decide which limit data to use.

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,079 Views)