LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lighting system of five leds

Solved!
Go to solution

hey, Im  facing a problem in lighting the five leds one after the other in a 0.5 sec delay. I have a true input to the loop containing the leds to let it work continueously,Can someone please help me find a way to fix this problem?

my file is attached here.

thanks

0 Kudos
Message 1 of 4
(2,247 Views)
Solution
Accepted by Abook7

You weve close.  her is a snippet showing corrected behavior for cluster 2.  You reall do'nt need to recreate the entire array for each itterarion.  I also moved the stop button to allow you to exit faster without waiting for the for loop to compleat all cycles.

 

BETTER.png

 

Keep reading the help file!


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 4
(2,234 Views)

5leds.PNG

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 4
(2,227 Views)

Why the OR function?  You are feeding in an array of 5 false values.  You OR that with something else, you are going to get the other wire.  ORing with a false array doesn't do anything.  (other than possibly limiting the array to 5 elements, but an array subset would do that for you.)

0 Kudos
Message 4 of 4
(2,225 Views)