LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to custom-make a new LED indicator in many colours.

Solved!
Go to solution

ajangot wrote:

I save it in labview 8.0.

 

If the temp is 20.5°C, you don't have case for this. it will be better if you use comparative block, every value is in a case.

 

Best Regards

 


 

Hello,

20.5. OK, I see. In a real application using double or single datatype I would miss it. 

In my little example I use I32 datatype, so I think I don't miss a value Smiley Wink.

BTW: no attachment for LabVIEW 8.0 Smiley Sad.

 

Uli

0 Kudos
Message 11 of 20
(3,117 Views)
0 Kudos
Message 12 of 20
(3,114 Views)

The property node method will work, but I'd still suggest going with the picture ring as Felix suggested. The property node will work (it's more coding) for a single instance of your control. But as soon as you put it into an array, and expect to get a different color on each element, it will break.

 

Chris

0 Kudos
Message 13 of 20
(3,112 Views)

Chèr Aurélien,

     Very nice VI.  How did you create the "color constants"?  It is a very "visual" way of seeing what will happen when the VI is used.

 

Bob Schor

0 Kudos
Message 14 of 20
(3,097 Views)

You can find color constants in "Graphics & Sound" -> "picture functions" -> "color box constant"

 

Color constant is a integer with constant RGB : Blue + Green*256 + Red*65535, with this indication you can create a color variable indicator 🙂

0 Kudos
Message 15 of 20
(3,089 Views)

This has been discussed many times before. If you want multiple colors, you want a colorbox indicator.

It can be made to look exactly like an LED (square or round).

 

 

Here are some older discussions and examples:

 

4 color LED (4ColorLED.vi)

  

Multicolor Dimmer (dimmer.vi)

 

(General Instructions. In your case, you would use the shape of a square LED for the colorbox control)

Message 16 of 20
(3,077 Views)

Using a "colorbox LED"  also has the advantage that you can use an array of such LEDs with each element a differnet color, something that is not possible with an array of booleans. In your first example, you would have a single array terminal instead of x individual LEDs, simplifying the code dramatically.

Message 17 of 20
(3,073 Views)
Merci, beaucoups.
0 Kudos
Message 18 of 20
(3,060 Views)
Merci beaucoups.
0 Kudos
Message 19 of 20
(3,057 Views)

OK, here's a quick example that uses a square multicolor LED (based on Colorbox). Simple, right?

 

If you want more levels, just expand the two array constants.
Message Edited by altenbach on 11-05-2008 12:30 PM
Download All
Message 20 of 20
(3,041 Views)