I know this is not exactly what you are asking for, but I will mention it anyway.
There are two ways to stop a For Loop. The first is to use the auto-index like you are doing. The other is to wire a value to the N input before starting the
loop. The loop will stop on the first occurence of EITHER of these methods. If you want the convenience of auto-indexing, but know that you will not want to
process all of the values in the array, try to determine the quantity before entering the loop. Then wire that value to the N input. A value of 0 will prevent
any iterations of the loop from executing.
Good luck.
--
Michael Munroe Mailto:mmunroe@abcdefirm.com
A Better Complete Development Engineering Firm
San Mateo, CA 94403 ht
tp://www.abcdefirm.com
chris szybinski wrote:
> this is exactly what I've done :-). But it would be much easier to be able to break the loop.
> chris
>
> Harry King wrote:
>
> > In article <39367174.217C9614@alf.ifj.edu.pl>,
> > chris szybinski
wrote:
> > >yes it is,
> > >sometimes I need to run the loop 0 times. While Loop runs at lest one time, as the condition is checked at the end of the loop. One can build the logic to
> > >run a While Loop 0 times, but in my case design becomes pretty complicated.
> > >In other words I can accomplish what I want, but I hoped to simplify my VI.
> > >best regards,
> > >chris
> >
> > Perhaps you could put a select comparison function in there and send the
> > results to the loop? WHile false, it will not run, and while true, it
> > will. Just a thought without any background into your program.
> >
> > Harry