LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a question about "for loop"

Bonjour

the problem I try to solve refers to a "for loop" which i try to stop
whenever i press a clear button.
I other words, I have a "for loop" that executes a number of task that last
about 30minutes.
the problem is, that I have no idea about how to quit such loop before the
number of iteration is reached

Thank you in advance for your help


Regards
Gerard



--
Gérard Férini
Switzerland
0 Kudos
Message 1 of 3
(2,723 Views)
Hi Gérard,

you have two main options....

either replace the for loop with a while loop (N needs to be determined programatically) or place the contents of the FOR loop in a case statement, leaving one case empty. By pressing a button linked to the case statement, the calculations for the remaining iterations can basically be skipped. The current iteration will still execute to completion though.....

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 2 of 3
(2,723 Views)
Thanks Shane for your reply. As a matter of fact, I'm going to choose the
first option you mentionned hereby since I think
it's the best option.
Nice of you to have answered

Regards
Gerard


--
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini/


"shoneill" wrote in message
news:50650000000500000026770100-1079395200000@exchange.ni.com...
Hi Gérard,

you have two main options....

either replace the for loop with a while loop (N needs to be
determined programatically) or place the contents of the FOR loop in a
case statement, leaving one case empty. By pressing a button linked
to the case statement, the calculations for the remaining iterations
can basically be skipped. The current iteration will still execute to
completion though.....


Hope this helps

Shane.
0 Kudos
Message 3 of 3
(2,723 Views)