LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event Application Exiting

can someone tell me how to use THIS event? I tried to use it but it seems to be NEVER executed. I also tried the panel closing event which seems to work if I close the application by clicking the x top right of the window but if I use the exit-module it doesn't work as well
Can someone help me ? I want use it to close a open file and a RS232 connection and that have to take place in any case !
0 Kudos
Message 1 of 2
(3,002 Views)
Good question, I've wondered about that myself...but using the panel close event is sufficient for the purpose you mention.

If the exit function is run it's done in the code so you can code in things to do prior to it happening...The problem used to be panel closing using the X, but now that too can be intercepted. Just discard the event and run all the exit operations instead...then close all windows.

Closing by running the quit labview function results in a flash on the screen as the VI(s) stop and show their toolbar for a split second prior to closing. Not very elegant. So for built applications the best way to close is to do it by closing all the windows, then the application will quit nicely (off course, make sure you do all other exit operations; fil
e saving, port closing etc. prior to closing the final window).
0 Kudos
Message 2 of 2
(3,002 Views)