10-30-2008 05:51 AM
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
10-30-2008 06:05 AM
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 🙂
10-30-2008 06:55 AM
thank you it is working