NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I invert (Not) the value saved to Step.Result.PassFail ?

Solved!
Go to solution

I would like my Pass/Fail test to PASS if my VI returns false.

to do so, I need to invert the value before saving it to Step.Result.PassFail

 

I've tried the following when saving the output of the VI to Step.Result.PassFail, but this does not work

 

!Step.Result.PassFail

Not (Step.Result.PassFail)

 

Any advice ?

0 Kudos
Message 1 of 4
(3,945 Views)
Solution
Accepted by topic author morngoose

Can you not just invert before you leave the code module or you could invert in the post expression.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,941 Views)

Alternatively, you could do the following:

 

You could invert the value in your 'Data Source' tab to the following:

 

!Step.Result.PassFail

 

Then you could have your VI return the boolean ( with it not inverted in the code ) to Step.Result.Pass.Fail in your VI connector Pane.   The advantage is that your code module in LabVIEW does not have to change.

 

Thanks,


PH

Message 3 of 4
(3,936 Views)

I like Teds idea

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,931 Views)