LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stop while loop

hi all,
         I am currently using labview7.1. Can anyone tell me how to stop a while loop without aborting the whole program? I'd be glad if u could show an example so that i can use that as a guide.
 
Thank u very much.
 
0 Kudos
Message 1 of 3
(2,687 Views)

use a control or condition to stop the while loop.

there are many examples given.

 

0 Kudos
Message 2 of 3
(2,680 Views)
Hi!
   If all your code is inside the while loop, it is normal that when you stop the loop, the program ends.

   If you're waiting for an event, you should configure your application to do so, but it's a different kind of programming!

   I'm not posting an example because I'd have post an example with 2 while loops, in which the loop inside stops when you click "Stop" button, but the outer loop keep application running... but it's just useless!

   Let me know if this helps... have a nice day!

graziano
0 Kudos
Message 3 of 3
(2,679 Views)