NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

one numeric output with 2 possible results

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

0 Kudos
Message 1 of 4
(1,174 Views)

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.

0 Kudos
Message 2 of 4
(1,152 Views)

You can use PreExpressions Box on the step settings

 

Define

LFBaute_0-1675971322339.png

 

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 

LFBaute_1-1675971353360.png

 

 

 

CLA, CTA
0 Kudos
Message 3 of 4
(1,148 Views)

Thanks 🙂

0 Kudos
Message 4 of 4
(1,096 Views)