08-09-2007 02:47 AM
08-09-2007 04:27 AM
Steffi,
You cannot break/ stop a for loop before it finishes the specified number of iterations
To stop a 'while loop' from a 'for loop', keep a local variable for the 'while loop's' stop boolean and update it with appropriate boolean constant at the end of 'for' loop's iteration
Regards,
Dev
08-09-2007 06:12 AM
If I understand what you are trying to do, I would have the while loop dependant on the local variable, and coming out of the for loop have a write to the local to stop the while loop. just have the wire pass through the for loop wall. This will ensure that the local isn't written to until the for loop is done.
hope that helps.
08-09-2007 07:22 AM
08-09-2007 07:26 AM
08-09-2007 07:34 AM
NI announced LabVIEW 8.5 this week ( www.ni.com/labview85 )
One of the new features is the ability to exit a for loop early with a terminating condition in the style of a while loop. I'm on SSP so I hope to get my copy soon.
Rod.
08-09-2007 08:27 AM
08-09-2007 03:00 PM
08-13-2007 07:22 AM
Hi:
thanks a lot for your help (which was helpful and funny: ))!!
It's working now, I just put the comparison after the for loop. In deed it has been within the for loop and that's why it stopped at the beginning of an iteration. But now it's ok. Thanks!