05-14-2012 08:29 AM
Hello,
Do you know how I can stop a for loop ? because when I click on the stop switch on my front panel, the VI don't stop and continue to run the loop.
Solved! Go to Solution.
05-14-2012 08:40 AM
Peter,
It sounds like you need a while loop, not a for loop. A button or switch does not traditionally control iterations of execution for a for loop.
Please post your code so we may help better.
-Chazzmd
05-14-2012 08:54 AM
If you have a newer version of LabVIEW, then you can right click on your For Loop and show the stop terminal. This will allow you to stop the execution of the For Loop earlier than you otherwise would based on N or the number of elements in an auto-indexing array.