05-07-2019 11:51 PM - edited 05-07-2019 11:52 PM
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
05-08-2019 01:02 AM
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.