02-09-2023 11:21 AM
Hi all,
I have a numeric output from a LabView Vi that if it passes the test will output a value of either 11 or 15 (both are acceptable) to TestStand.
Is there a way in TestStand to compare the numeric to either 11 or 15 (numeric limit test).
I do not want to set a high limit of 15 and a low limit of 11 as 13 would be a fail.
Regards
Chris
02-09-2023 01:35 PM
In this case, I'd suggest using a Pass/Fail test with the Data Source set to:
(Locals.Value == 11 || Locals.Value == 14)
And use ReportText to note what the value actually was if needed.
Hope that helps.
02-09-2023 01:36 PM
You can use PreExpressions Box on the step settings
Define
Add Pre Expression to your Numeric Test Step
(Locals.LVResult == Locals.Limit_01) ? (Step.Limits.Low = Locals.Limit_01) : (Step.Limits.Low = Locals.Limit_02 )
You should get something like
02-13-2023 02:14 AM
Thanks 🙂