06-13-2007 02:56 AM
06-13-2007 03:34 AM
Its not possible to do that in LabVIEW
The FOR loop has to finish its set number of iterations before stopping
06-13-2007 04:37 AM
06-13-2007 06:16 AM
06-13-2007 06:32 AM

06-13-2007 06:36 AM
Hi Kumar,
Can you attach the screenshot once again ?
06-13-2007 06:46 AM

06-13-2007 08:02 AM - edited 06-13-2007 08:02 AM
You can also program the logic into it. I've used this a few times. Just put everything in the loop inside a case structure, then you can do some boolean operation that you want to use to stop the loop, wire this to a shift register and use it on the next iteration. In the true case, just wire everything through so nothing happens once the condition is met. The loop is still running, but it isn't doing anything and will finish very quickly.
I also added a shift register for the iterator in this example so you could obtain it after the "break" condition occurred.

Message Edited by Marc A on 06-13-2007 09:02 AM