LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two While Loops on one Block diagram do not run independently. I have two millisec timers with different values controlling LED's, but the LED's blink in phase. Why?

If I put the While Loops on two separate VI's and run them both, I get the expected result; ie, the LED's blink asynchronously.
0 Kudos
Message 1 of 5
(2,902 Views)
Do you have any wires connecting both loops within the VI?

Maybe try posting an example?

Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 5
(2,902 Views)
No - just two While loops on the same blk diag page.

OK, this is my first time to use the forum, and I see that I can post a file attachment, which I will do now.

Thank you _very_ much for your prompt assistance!
0 Kudos
Message 3 of 5
(2,902 Views)
If you are using the "Continous Run" button the LEDs will blink synchronously because the VI doesn't run again until both wait times have expired.

In your VI, I changed the while loop conditionals to "Continue If True" and the LEDs blink at different rates.
0 Kudos
Message 4 of 5
(2,902 Views)
I changed the VI per your comment, and it works 'as expected' now...

Kudos & thanks to VI Guy!
0 Kudos
Message 5 of 5
(2,902 Views)