LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quit while loop in event structure

Hello,

I used event structure in my application and I would like to quit a while loop in an event structure when I pressed a control. But I have a problem because I'm in the event.

Do you have a solution.

Sam.
0 Kudos
Message 1 of 4
(3,125 Views)
Hi,
connect a true constant to the While loop conditional terminal in the STOP event case.
See your example modified.
Good luck,
Alberto
0 Kudos
Message 2 of 4
(3,125 Views)
Sorry, I resized the front panel and I did not see you have the quit button.
Anyway, what is exactly your problem? When you hit Quit it stops the while loop.
Alberto
0 Kudos
Message 3 of 4
(3,125 Views)
If you right click on the event strucutre you will notice that there is an option grayed that that is called "lock panel until handle completes". This option is always check for some of the events. The following is a knowledgeBase that describes this in some detail:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/6c17e54004baa5dc86256cbf006b55b9?OpenDocument
Message 4 of 4
(3,125 Views)