04-07-2010 03:46 AM
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
Solved! Go to Solution.
04-07-2010 04:00 AM
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