LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I start and stop two parallel loops?

Solved!
Go to solution

Hello,

 

I want to control two parallel loops with different timing in a vi . That means to start loop 1, then loop 2, stop loop 1 or 2 restart loop 1 ...

But if loop 1 is running I cannot start loop two and reverse.

 

Can someone help me and show whats wrong in my example?

 

Thanks,

 

Christian

 

 

 

0 Kudos
Message 1 of 2
(2,483 Views)
Solution
Accepted by topic author cosw

Hello Christian,

 

The reason why you can't do what you want is in fact quite simple.

You have an external loop that is "over" the two inner loops.

So when you stop one of the inner loops, the outer loop will still be in the same iteration until the other inner loop ends - stop the other inner loop.

You can see it very easily if you probe the iteration counter of the outer loop - only when both the inner loops stop, it will incerment.

 

So, to do what you want, you need to make them independent - you need two outer loops.

Check my attachtment, see if that's what you need.

 

Hope this helps,

Paulo

 

Message 2 of 2
(2,479 Views)