LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the color of leds inside a cluster

Hello,

I am looking for a way to change the color (we need four "active" colors: blue, green, red and orange) of an led, which is inside a cluster. We are using a led cluster to indicate different states of elements during a measurement test. Normaly the cluster contains 64 leds.

I wrote a litte example (in LabVIEW 6.1, we are now using LabVIEW 7.1) to show the problem. My idea was to extract the array of elements inside the cluster using a property node, indexing the array with the known number and changing the colour of the led using a porperty node. But it seems that there is no property to change the colour of a led inside a cluster.

Does anyone have an idea how to solve the problem?

Thank you very much for your help.

Best regards,
Michael
0 Kudos
Message 1 of 12
(5,401 Views)
Yes, you can use a property node to change the colors.
However, you'll have to dig to find it 🙂
1/ get the refs to the controls inside the cluster
2/ tell LV that these controls are booleans
3/ access the color property node

Have a look at the attached vi.

CC
Chilly Charly    (aka CC)
Message 2 of 12
(5,388 Views)
Thank you very much. Your example solved my problem!
0 Kudos
Message 3 of 12
(5,379 Views)
In your example VI the cluster doesn't contain LEDs (which are of data type BOOLEAN) but color boxes. So you just can wire new values to the indicator 'rotunda'. See the attached VI.

[The reason why you progam didn't work was the misssing information od the cluster size in the 'Array to cluster' function. You have to rigth click on that function and select the correct cluster size (4 in this case). ]

You need to use property nodes only if you want boolean LEDs in your cluster and need more than the two colors corresponding to the ON and OFF state of the boolean LED.
0 Kudos
Message 4 of 12
(5,374 Views)

i am having similar problem,trying to use property node to  change colour of LED.

under certain conditions the LED colors to be changed(two colours),then needs to reset to its original colour when the program stops.Thanks in advance

0 Kudos
Message 5 of 12
(5,043 Views)
Well, apparently you know how to change the colors of the LED, so simply run that same code with the desired default colors after all other operations have been completed, right before the VI stops.
0 Kudos
Message 6 of 12
(5,036 Views)

tq

can u explain little more

0 Kudos
Message 7 of 12
(5,018 Views)

I used the same method as attached file but its not wroking,can anyone tell whats wrong

tq

0 Kudos
Message 8 of 12
(5,004 Views)
Hi vk1,

what's depicted in that illustration?
Do you want to change the color of LEDs (boolean indicators, colors to be set by property "colors[]") or do you change the color of colorbox indicators?

Please provide actual code instead of meaningless code snippets!


Message Edited by GerdW on 06-24-2008 09:57 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 12
(4,998 Views)

thanks for your reply

set of indicators is clustered,I tried altenbach suggestion but i am not able to rest the LED to its default colour.

I like to change colour of LED at different conditions(i am going to use two conditions,so its going to be default colour,indicator at 1st condition and indicator at 2nd condition) and to reset it to its original colour.

0 Kudos
Message 10 of 12
(4,983 Views)