LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make FP closable but also stopp the program

Hello,

I made the tollbar invisible but made the window closable. I expected that, when clicking the upper right X, the window would close and the program would stop. But I see that the program continues running (in Win Task manager). How do I do that if I want to let the operator stop the program but don't want the FP to stay open?

Can anybody also explain me what does it mean "suspend on call"?

Thanks,

Marce
0 Kudos
Message 1 of 8
(4,190 Views)
you should use the "panel close" event, as in the attached vi.
CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 8
(4,183 Views)
Thanks, CC.

It didn't help though. Your Vi stopped when I closed the FP (with the boolean = T) and mine didn't. I think it's one of the other properties of the FP that does the difference. I change the "resizable" and other properties so the operator don't play with the windows. I'll try a few changes and probably will discover what it is.

I still owe you an email.

Thanks,

Marce
0 Kudos
Message 3 of 8
(4,174 Views)
When you select Suspend On Call for a VI, the VI is paused whenever it is called. This is akin to placing a breakpoint on the VI so that the calling VI pauses when it is about to call the subVI.
Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 4 of 8
(4,166 Views)
Hello,

The reason for the application to continue running was that two SubVis were open. Closing the main Vi FP left those SubVis open and the program running hidden or something like that. When I closed manually the two FPs of the SubVis, the appl. stopped. The solution was to use the event structure, as shown by CC, to close the SubVis FPs and then let the main FP close (Discard? = False).

It's strange though that the program stays in memory for a few seconds, then it goes to "not responding" status and then disapears.

Thanks,

Marce
0 Kudos
Message 5 of 8
(4,154 Views)
Can you re-post your Stop&Close vi saved as the 7.0 version? I don't have 7.1 yet and I need to see how to trap the FP close event. I'm sure its easy. I just haven;t worked with events yet. I need to do some clean-up before the app closes if the user hits the top-right close X.
0 Kudos
Message 6 of 8
(4,097 Views)
Attached is the Vi in LV7.0 format Good luck!

Marce
0 Kudos
Message 7 of 8
(4,073 Views)
Thanks for posting the 7.0 version.
I successfully got the concept to work in my larger program.

Jeff
0 Kudos
Message 8 of 8
(4,062 Views)