03-07-2011 08:19 AM
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 ?
Solved! Go to Solution.
03-07-2011 08:22 AM
Can you not just invert before you leave the code module or you could invert in the post expression.
03-07-2011 09:00 AM
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
03-07-2011 09:30 AM
I like Teds idea