LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application builder created executable does not close front panel when called

Solved!
Go to solution

I typically use a "panel close?" filtering event that I discard. I will run cleanup code, end the toplevel loop and as a final step either close LabVIEW (runtime==true) or stop the VI (default) via a conditional disable structure.

 

(Be aware that if you have multiple event structures, only one should have the "panel close?" event, else you run into issues because whatever "panel close?" event sees it first will discard it and the other one will never see it. 😄 You must discard it, else the OS will take over and close the window.)

0 Kudos
Message 11 of 12
(108 Views)

Hi,

 


@altenbach wrote:

I typically use a "panel close?" filtering event that I discard. I will run cleanup code, end the toplevel loop and as a final step either close LabVIEW (runtime==true) or stop the VI (default) via a conditional disable structure.


That's what I usually also do in my executables: the Quit/Stop is the very last step in the program...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 12
(96 Views)