LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stopping a for loop

It's taken about 30 minutes of trawling through the forums and a cup of coffee to conclude that you cannot yet force a stop on a for loop, without replacing it with a timed loop or a while loop.

 

Anyone disagree? If so, please enlighten me!

 

Paul

 

 

"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 1 of 6
(2,491 Views)
If you have LV 8.5, then you can right click the for loop structure and add a condidtional terminal, which will break the loop similarly to a while loop
_____________________________
- Cheers, Ed
0 Kudos
Message 2 of 6
(2,486 Views)

Hi,

 You can terminate the For Loop any time you like.

Right click the For Loop and check mark "Conditional Terminal".

 

I hope this is what you were looking for.

 

Regards,

Ritesh

0 Kudos
Message 3 of 6
(2,483 Views)

You know what, I am using labview 8.6 and I have literally this moment just found that right click option!

 

Please no lectures about reading the upgrade notes......

 

Paul

"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 4 of 6
(2,480 Views)

Since you gave up reading after reading about the horrors of drinking, then it is obvious that you didn't read the upgrade notes.  So you are excused.Smiley Very Happy

- tbob

Inventor of the WORM Global
Message 5 of 6
(2,423 Views)
And that reply deserves a pint!
"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 6 of 6
(2,391 Views)