12-09-2016 04:53 PM
I am trying to implement a PASS/FAIL LED in a LabVIEW VI that gets called by a TestStand sequence. I want the LED to be ON as long as TestStand determines that all test sequences have passed, then turn OFF as soon as TestStand determines that the UUT has failed any subtest. I tried to call a "Test Stand - Get Property Value.vi," inputing "RunState.SequenceFailed," but that did not work. Can anyone point me to a reference I can read in my LabVIEW VI that will show whether the UUT has failed any TestStand sequence steps? Thanks.
Solved! Go to Solution.
12-12-2016 02:48 AM
You should integrate that LED into your customized UI. That way, you can use the UI Messages to update the LED.
The easiest way to get the Fail state of the execution is once the execution is ended (EndExecution UIMsg) and query for the SequenceFailed state.
If you want to update during execution, you can use the Trace UIMsg or you create a StepFail callback sequence which sends a custom UIMsg.
Please refer to example code here.
12-12-2016 11:27 AM
Hi,
Instead of "Runstate.SequenceFailed", trying using the following:
ThisContext.RunState.Main.SequenceFailed
See: Runstate Properties
Also, make sure that you have "Step Failure Causes Sequence Failure" set on your sequence calls.
Regards,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
12-14-2016 05:58 PM
I ended up just making a StationGlobal and tracking that in the VI. Thanks to everyone who helped.