LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to turn off a LED in an array

Thanks altenbach and Ravens
 
Becoz, once  a option is choosed in the drive select list it should not be available to select again until that option is turned OFF
 
Thanks
0 Kudos
Message 21 of 36
(1,501 Views)
0 Kudos
Message 22 of 36
(1,499 Views)
The reason the indicator belongs BEFORE the event structure, is so it gets to a defined state (all black) after you start the program. If you place it after the event structure, it won't get updated correctly until one of the events has fired. This is a problem if you run the program several times in the same LabVIEW serssion and the indicator still has some stale values from an earlier run..
 
After one event has executed, the behavior is the same. Later, it does NOT matter if you update it after the event in the same iteration or at the beginning of the next iteration. There is virtually no time difference. So: Place it before the event structure, exactly how I did it in originally!
 
I would recommend that you don't randomly change things around. There is often a good reason I do things in a certain way. Trust me! 😄


Message Edited by altenbach on 07-08-2008 05:15 PM
Message 23 of 36
(1,494 Views)
yes its true,i checked earlier.but the problem is to turn the indicator OFF
0 Kudos
Message 24 of 36
(1,487 Views)


Veeru wrote:
...but the problem is to turn the indicator OFF

This has nothing to do with the position of the indicator terminal with respect to the event structure. To turn off an LED, you just replace the appropriate array element with black. The code will be similar in style to what you already have.
 
Do you still have a problem?
0 Kudos
Message 25 of 36
(1,485 Views)
yes
0 Kudos
Message 26 of 36
(1,483 Views)
Do you mean the last one you posted saying it worked?
0 Kudos
Message 27 of 36
(1,464 Views)
yes,but altenbach has given the reason for placing the indicator array infront of event structure
0 Kudos
Message 28 of 36
(1,460 Views)

Okay.. that means that you have a newer version, right?

Can you post that one?

R

0 Kudos
Message 29 of 36
(1,458 Views)

No,the one i said working is the program I am having now,after  altenbach reason of placing LED i am using his example.

Thanks

0 Kudos
Message 30 of 36
(1,456 Views)