NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

PASS/FAIL LED in VI

Solved!
Go to solution

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.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 4
(3,315 Views)

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.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(3,250 Views)

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

Message 3 of 4
(3,236 Views)
Solution
Accepted by topic author diarmaede

I ended up just making a StationGlobal and tracking that in the VI.  Thanks to everyone who helped.

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 4 of 4
(3,211 Views)