LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to turn off a LED in an array

hi
 
I have an array of LED, i need to turn the LED OFF(as per the case).
 
Thanks
 
0 Kudos
Message 1 of 36
(4,616 Views)
Hi Veeru,
use the "Replace Array Subset" function to do it.
Mike
Message 2 of 36
(4,609 Views)

Thanks Mike

Yes its true,i forgot that

 

Thanks

 

0 Kudos
Message 3 of 36
(4,606 Views)
Do you have a means to index which element that you want to turn OFF?
 
EDIT: Mike was faster than me..  😉
 
R


Message Edited by JoeLabView on 07-08-2008 10:29 AM
Message 4 of 36
(4,601 Views)

Thanks Joe and Mike

I using the colour box,the LED turns on with some different colours depending on the conidtion.I tried using the replace subset,its turning OFF all the LEDs.

Thanks

 

0 Kudos
Message 5 of 36
(4,581 Views)
Please post your code so we can see what you are doing wrong.  It sounds like you are replacing the whole array rather than just the particular element.
0 Kudos
Message 6 of 36
(4,573 Views)

Thanks Ravens

i Want to do,when deactivate button is pressed,the corresponding LED turns oFF

0 Kudos
Message 7 of 36
(4,565 Views)
You cannot "turn off" a color box. You could just assign it a more neutral color. 😄
Message 8 of 36
(4,550 Views)
Thanks altenbach,
 
Thanks for the reply for the other post,i will check it and let u know how it goes
 
Thanks
0 Kudos
Message 9 of 36
(4,542 Views)
Besides, you're using shift registers to hold the LED states and the disabled items, but in the event that handles the "Deactivate" buttons you're not updating those shift registers. You're generating another array that goes into another tunnel output that goes nowhere.
0 Kudos
Message 10 of 36
(4,539 Views)