LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

For Loop , While Loop Help

Hello, I having trouble trying to get this to work.  I just learned While and For Loops and I am trying to get three LEDs to cycle automatically.  So when #3 LED turns off, the #1 LED turns on.  How can this be done?  I was using timer intervals as followed:

1 LED - 0 - 3 seconds
2 LED - 3 - 6 seconds
3 LED - 4 - 10 seconds

Thanks.
0 Kudos
Message 1 of 10
(3,551 Views)
Hello Dragoon70,


I am not completely sure that I understand your question.  Please see the attached VI and let me know if it is what you are looking for or not.  I think that at least it should be a good starting point for you.  Please feel free to let me know if you have any questions.

Cheers!
0 Kudos
Message 2 of 10
(3,542 Views)
Upon further review, the attached method is simpler and more robust.  I apologize for thinking hard enough on the first pass.  As always, let me know if you have any questions.

Cheers!
0 Kudos
Message 3 of 10
(3,535 Views)
By any chance could you save the .vi files under version 8.0? 

0 Kudos
Message 4 of 10
(3,529 Views)
Not a problem, here is the 8.0 version.  I only saved the Boolean2.vi as 8.0 as the first one doesnt really cut the mustard.

Cheers
0 Kudos
Message 5 of 10
(3,526 Views)
Thank you very much.  This seems to answer my problem.  I never thought about using Shift Registers. 
0 Kudos
Message 6 of 10
(3,521 Views)
Not a problem.  Have a nice weekend.
0 Kudos
Message 7 of 10
(3,515 Views)


Dragoon70 wrote:
1 LED - 0 - 3 seconds
2 LED - 3 - 6 seconds
3 LED - 4 - 10 seconds

So from 4-6 seconds, both #2 and #3 should be on. Is this correct?
 
Here's a simple solution.
0 Kudos
Message 8 of 10
(3,506 Views)
does anybody have vi in 7.0 version.i also want to see the example..
0 Kudos
Message 9 of 10
(3,488 Views)
Here's an animated image of my example.
 


Message Edited by altenbach on 03-15-2008 08:10 AM
0 Kudos
Message 10 of 10
(3,478 Views)