The LED is a common component (indicator or control) of every GUI. But, the current LabVIEW LEDs are a state representation of a ON/OFF button. Why…
If you want a RED, YELLOW, and GREEN LED to represent a traffic light or a RED, YELLOW, GREEN, and BLUE LED to represent state of a system, what are your options?
My LED Xcontrol is a simple decoration available on a multiple set of colors.
The LED Xcontrol consists of a standard decoration (round shape) and can be used as an indicator or a control. The BG and FG colors are configurable. Actually, 4 status are defined in a Typedef and the user can associate a color for each status.
- Simple Xcontrol integration into your project
- Indicator or Control
- Left-click menu for status selection (control mode)
- Right-click menu for colors status edition
- Property node to change colors programmatically
- Enum typedef can be adapt to any situation (TD_status.ctl)
Main Demo GUI (GUI_LED.vi)
Right-click menu, Status Color (edit mode)
Colors can be edit for every LED (2 LED with different colors per example!)
/servlet/JiveServlet/downloadImage/14824/adding+example.png
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
sweet, another xcontrol submission. nice.