Summary:
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.
Function:
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.
Features
- 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)
Steps to execute code:
- Download zipped folder and unzip to your machine
- Open the project file
- Run Gui_Led.vi
- Execute program
- Enjoy the LED Xcontrol as an indicator or a control
Screenshots:
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!)
VI Snippet:
/servlet/JiveServlet/downloadImage/14824/adding+example.png
VI attached below