LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Loop Order

Solved!
Go to solution

I have a program with multiple loops. How can I make it so that one loop will wait until another one is finished before it begins?

 

Thanks,

arithehun

____________________________________________________
Programmer for Team 3024
0 Kudos
Message 1 of 4
(2,813 Views)
Solution
Accepted by topic author arithehun

Run a wire from the first loop to the second, even if you don't need to do anything with the data on that wire.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

Message 2 of 4
(2,805 Views)

Pure awesomeness! Thank you very much!Smiley Happy

____________________________________________________
Programmer for Team 3024
0 Kudos
Message 3 of 4
(2,802 Views)

How can I make it so that one loop will wait until another one is finished before it begins?


just SIMPLY wire them serially, so you can maintain the sequence of your loops. error clusters are commonly used in this method (coz most functions have built-in error terminals on it), but you can also used other wires to be inputted from your previous loop to your next loop. see picture below. you can also customize your buttons (by property node - disable/visible)  to let the user used the RIGHT stop button in your existing running loop (other buttons for stopping loop are disabled or invisible).

 

6.jpg

Ivel R. | CLAD
Message 4 of 4
(2,797 Views)