06-23-2024 12:30 PM
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.)
06-23-2024 02:58 PM
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...