LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Form Unload

Solved!
Go to solution
Hi all, 🙂 I tried searching for an equivalent of form unload for VB but from what i could understand i couldn't find anything. In my program i am opening serial ports, etc. and i want in case the user/system does not close the program properly during operation to have an event type structure(for example) in order to close the ports so they can release the resources and be able to run the program normally later on. Is there an equivalent function or way to form unload like in VB for labview? Cheers
0 Kudos
Message 1 of 3
(2,426 Views)
Solution
Accepted by topic author Malakeh

There's a Panel Close? event for the VI. Normally, though, you wouldn't need to use this, as you can simply design the VI so that code runs after your main loop completes.

0 Kudos
Message 2 of 3
(2,421 Views)
Hi Smercurio_fc, Thanks for the response, I want to avoid having to click stop to then close the program that's why i wanted the event :) Thanks again 🙂
0 Kudos
Message 3 of 3
(2,413 Views)