LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing close event of a VI.

In Visual Basic, you can capture the close event of a form and have the form perform some actions before it closes. How do you do that with a Player VI? (I can't use ActiveX)
0 Kudos
Message 1 of 2
(2,577 Views)
The method that I use is to not allow the user to close the window (turn off the "Allow User to Close Window" in the "Window Appearance" VI property). I then put some kind of "Quit" button on the panel of the VI. I can them program what I want that button to do.

If I want the "Quit" button to function as an "Abort" button and kill whatever is happening when it is pressed, I run it in its own while loop outside of the rest of the program. LabVIEW then runs the check of the button in its own thread.
0 Kudos
Message 2 of 2
(2,577 Views)