NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Variables for Pass/Fail Step

Hello everyone, i'm new to Teststand, and in my ATE Project, i have three variables from getting data from UUT: 1,2,3; and after a pass/fail step that if these three variables are equals to A,B,C the result is pass. This is the idea, and the test pass, but on report the result is: " additional result, fail".

The expression in Data Source of the Pass/Fail step is: 

 

(var1 == "A") && (var2 == "B") && (var3 == "C")

 

Is it correct to put this expression in Data Source?

Where i' m wrong?

 

Thank you in advance, Giorgio

0 Kudos
Message 1 of 3
(280 Views)

Put your Data Source back to default:  Step.Result.PassFail

 

Then set your Post Expression to Step.Result.PassFail = (var1 == "A") && (var2 == "B") && (var3 == "C")

0 Kudos
Message 2 of 3
(274 Views)

Your expression itself is fine. You can stick that in the Data Source Expression and it won't be an issue.

ShockHouse_1-1708699382010.png

 

The Additional Results "fail" is probably from something else you have set up on the step. Have you checked Properties -> Additional Results to see what else you are logging for the step?

0 Kudos
Message 3 of 3
(231 Views)