07-21-2006 11:17 AM
07-21-2006 11:35 AM - edited 07-21-2006 11:35 AM
Message Edited by altenbach on 07-21-2006 09:38 AM
07-21-2006 11:41 AM
07-21-2006 11:44 AM - edited 07-21-2006 11:44 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
07-21-2006 11:44 AM
@Damsel wrote:
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.