11-05-2008 05:23 AM
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
Solved! Go to Solution.
11-05-2008 05:34 AM
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
11-05-2008 06:15 AM
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.
11-05-2008 06:19 AM
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
11-05-2008 06:39 AM
Take a look at the picture ring. You can paste a LED picture for every color you need.
Felix
11-05-2008 07:06 AM - edited 11-05-2008 07:07 AM
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
11-05-2008 07:33 AM
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).
Aurélien J.
National Instruments France
11-05-2008 08:21 AM
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
11-05-2008 08:23 AM
Hello,
After saw all the thread, now i know how to make it already, thx Uli and ajangot. Have a nice day^^
11-05-2008 08:27 AM
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
Aurélien J.
National Instruments France