LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

panel close

Hi

   I have a vi running.In the front panel if i close the Vi by clicking right top corner red X closing option it should ask for option to close the Vi or not if i give yes it should close if i give no it should not close the vi.ultimately user need to take the control to close or not after clicking the window close button

0 Kudos
Message 1 of 3
(2,434 Views)

drop an event strcuture on your block diagram and add the event "this vi -> panel Close?" use the event with the question mark and the red flag.

 

On the right is a box with "discard" in it. wire a TRUE to this. when the X is clicked by the user, LV will ignore the request. instead you can send a quit command to your consumer loop, or state machine, or whatever strcutures you are using 🙂

_____________________________
- Cheers, Ed
Message 2 of 3
(2,429 Views)

thank you it is working

0 Kudos
Message 3 of 3
(2,409 Views)