LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to turn off a LED in an array

From looking at the code, it seem you want to turn it red to show deactivation.
 
Here's a quick rewrite. Maybe it can give you some ideas. 😄
 
(also note some of my comments in the other thread)
 
I think a tab controls is inappropriate for the mode selection. Why not use a radio button for example?
Message 11 of 36
(1,570 Views)
Also, why use a tab control to indicate which mode is selected when a radio button group would seem more intuitive?

EDIT: This is really weird. When I posted my message I did not see altenbach's reply above that had this same question. Then, when I went back into the thread due to an email notification I saw altenbach's reply with the same question I had about using radio buttons, but posted before my question. Weird.


Message Edited by smercurio_fc on 07-08-2008 11:36 AM
0 Kudos
Message 12 of 36
(1,569 Views)
Do you need to have multiple active? ie:  more than one radio button selected?
0 Kudos
Message 13 of 36
(1,565 Views)

Hi altenbach

With this problem,at the moment the LED array is in front of the event structure and we got deactivate event is in separate event case.Its working fine

But when i moved the LED array into the Drive select event(because the LED needs to be enabled only after certain conditions) i am able to enable it but when i tried turn OFF (in ur program u have assigned to RED)its not turning OFF,still remaining the enabled colour.

How to turn OFF when moved into the event structure

 

Thanks

0 Kudos
Message 14 of 36
(1,528 Views)
Whatever you are saying is too confusing without seeing the program. Why don't you attach some code again?
0 Kudos
Message 15 of 36
(1,526 Views)
I have attached the code
 
For time being i am using the tab control


Message Edited by Veeru on 07-08-2008 06:21 PM
0 Kudos
Message 16 of 36
(1,524 Views)


Veeru wrote:

How to turn OFF when moved into the event structure


Then don't move it inside the event structure! Why do you break the code by doing random things like that.
 
Can you tell me why you think you need to move it inside one of the events? Makes no sense!
0 Kudos
Message 17 of 36
(1,519 Views)

becoz in that Drive select event i am using a button so the LED needs to be enabled only after the button is pressed(many case structures in that event)

Thanks

 

0 Kudos
Message 18 of 36
(1,515 Views)
If it is outside the event as in my original design, it will faithfully display whatever is in the shift register.
 
If you want a a different output in certain cases, all you need is to manipulate the array going to the shift register accordingly. For example, you can just replace a "black" back into the appropriate location. Right?
0 Kudos
Message 19 of 36
(1,513 Views)
Move your Drive Select Array Terminal out of event case 0 "Drive Select Value change".  You may be changing the colors in the array, but they never get passed to the terminal until you change the value in your Drive Select Array.
 
I still don't understand why when you select a Drive, you disable it in the list. Smiley Indifferent
0 Kudos
Message 20 of 36
(1,511 Views)