LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Control color of each element in a cluster?

Yes, I customized the square color box by importing the graphics from the classic round LED.
0 Kudos
Message 11 of 37
(7,794 Views)
Thanks
0 Kudos
Message 12 of 37
(7,790 Views)
Here is my example in 7.0 in case you are still interested.  In my application I used booleans because I needed the off/on aspect with the color of the 'on' representing a warning and an overload.
Randall Pursley
0 Kudos
Message 13 of 37
(7,789 Views)
Randall, This is help. It is another way to handle my application. Thanks.
0 Kudos
Message 14 of 37
(7,784 Views)
Altenbach, Could you show me how to customize the color box. I tried but could not do it, thanks.
Message 15 of 37
(7,785 Views)
  1. Place the plain square color box and the boolean control that you want to copy on the front panel.
  2. Right-click on the boolean control ..advanced...Customize...
  3. In the control editor, click on the "wrench" to switch to "customize mode".
  4. RIght-click on the control ..copy to clipboard.
  5. Close the control editor.
  6. Now open the color box in the control editor as described above.
  7. Go to "customize mode", right-click ...Import Picture.
  8. Close control editor, don't save (first dialog), but replace the original in the current VI (second dialog).
  9. Save the VI.

Of course you could also save the control, and even place it on your user palette for frequent access.

See how far you get! 🙂

For further reading, have a look at the Application Note 159.

Message Edited by altenbach on 07-01-2005 11:20 PM

Message 16 of 37
(7,794 Views)
Altenbach, I got it, thanks.
0 Kudos
Message 17 of 37
(7,777 Views)

How do I put text in the middle of the indicator like the boolean?  Something like PASS,FAIL,TBD.

0 Kudos
Message 18 of 37
(7,138 Views)
  • If it is a boolean, you can modify the "boolean text" property.
  • If it is a color box, you could overlay a string indicator with transparent background.
  • If you want fancier, just use a picture indicator for the entire thing. 😉
Message 19 of 37
(7,131 Views)
I'd prefer something simpler... like a enum that could have colors associated with enum values...
0 Kudos
Message 20 of 37
(7,126 Views)