08-06-2012 02:15 AM
I am designing a vi which opens various subVI front panel during run time. every subvi is opening different ports (Com or ehternet) on PC. I want to close all the vis by clicking the window close, andure that every port has been closed by the program before exiting
08-06-2012 03:29 AM
Handle the port close in Panel close event of event structure in each Sub VI
http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/vi_e/
08-06-2012 03:33 AM
08-06-2012 04:15 AM
Can you tell me, How to generate panel close event of sub vi from main VI or any other vi.
08-06-2012 04:20 AM
hi GerdW.
Your solution will work. But I have some more problem. I have been asked to design vi like standard window application, where user should not press stop but will click on window close button. Again user may close every opened sub VI during run time and reopen again, till the main program is closed.
08-06-2012 04:25 AM
08-06-2012 04:27 AM
HI everyone,
I think I got the solution.
I will use stop flag as suggested by GerdW.
and same time use panel close for individual vi's as suggested by nijams.
Thanks to both of you.