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

Hi everyone,

 

I wanna custom-made myself a LED indicator in LabVIEW, to show different colours in a SINGLE LED indicator, but i do not know how to do it, izzit possible to make it?

If it is possible, teach me the step how to make it, coz im a new user of LabVIEW. thx alot.

 

Best regards,

Yong Hoe

Download All
0 Kudos
Message 1 of 20
(5,823 Views)

Hello,

you can use a property node to change the colour of your LED programmatically.

On the block diagramm right click the LED and choose create->property node->Colors[4].

 

Hope this helps.

Uli

0 Kudos
Message 2 of 20
(5,815 Views)

Thx Uli, i had try your vi that u gave me, but i still confusing the vi, because there is a array which can choose 4 colours in a indicator, but i need 1 colour in 1 indicator only.

actually im doing a small assignment that i detecting temperature using DAQ and output is show LED indicator, the indicator is showing atleast 7 colours in 1 indicator only, i.e. 30C ~ 39C is blue colour, 40c ~ 49C is green colour, 50C ~ 59C is yellow colour, 60C above is red colour. most important is i need 1 indicator show different colour more then 2 colours. hope Uli or everyone can help me.

0 Kudos
Message 3 of 20
(5,804 Views)

Hi there,

 

I had the same problem once, but only for tristate control. here is the URL to the thread that spoke about it: 

http://zone.ni.com/devzone/cda/epd/p/id/1955

You can probably edit this control to add more states. 

Another option could be to use a 3d control and to limit it's x and y values to a 1x1array. (x=0,y=0,z=your value) 

 

I hope this helps

 

Matthieu

0 Kudos
Message 4 of 20
(5,798 Views)

Take a look at the picture ring. You can paste a LED picture for every color you need.

 

Felix 

Message 5 of 20
(5,787 Views)
Solution
Accepted by topic author Yong Hoe

Hello,

 

don`t mind the 4 colors. Look at the context help, they are for the states of the LED. I think you don't need them.

 

I attached a simple example how you can vary the color of a LED.

 

Hope this helps.

Uli

Message Edited by UliB on 11-05-2008 02:07 PM
Download All
0 Kudos
Message 6 of 20
(5,765 Views)

Hi Ulib,

 

In your VI, you miss some value between each case. It's better to use this VI.

 

 at Young Hoe,

if you don't know something about a function or property, use context help (ctrl+h).

 

0 Kudos
Message 7 of 20
(5,750 Views)

Hello Aurélien J.,

can you please save your VI for a previous version of LabVIEW, I don't have LabVIEW 8.6, and can you explain why I miss some values?

 

Uli

0 Kudos
Message 8 of 20
(5,726 Views)

Hello,

 

After saw all the thread, now i know how to make it already, thx Uli and ajangot. Have a nice day^^ 

0 Kudos
Message 9 of 20
(5,721 Views)

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

 

0 Kudos
Message 10 of 20
(5,718 Views)