Build a Tri-State LED Indicator in LabVIEW

When using the default LED indicator in LabVIEW in my test projects, I found that the two statuses of it is not enough. For example, we can use a LED with red False status to indicate test failed and green True to indicate test passed, then what we can do with the LED before the test finish? The test result is still unknown, red and green are not proper. In this situation, we need a yellow Unknown status with the LED indicator.

The following is how I build a tri-state LED indicator:

First create a new VI, place a enum control and a LED indicator on the front panel as below:

VI's front panel

Then edit the enum’s properties as bellow:

Enum properties

And here is the diagram of this VI:

VI's diagram

This VI can be called by other VIs. We can use it to make LED indicator to display three colors for three different states.

This VI can be downloaded here: Tri-State LED Indicator.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>