Message Edited by altenbach on 07-21-2006 09:38 AM
This should work just fine I implemented it easily. Here is a vi in 7.1 that shows what you explaned. Post your code so that i can have a look and see why yours does not work.
Got beat to the punch
Message Edited by Jhoskins on 07-21-2006 12:45 PM
If they are equal a local variable is set to true.
Loop2 should terminate once this local variable changes to true as
Just a side comment to this approach:
You also have to be very careful with race conditions here. Instead of "equal", set the local variable TRUE if the iteration is "greater or equal" the set value. Otherwise, depending on the loop rate of the two loops, it is possible that the local variable is set to true only for a very short period and thus can be missed by the While loop entirely, which read the boolean only a certain intervals.
No matter what, my apprach above is preferred because the value is set once the loop has finished.