LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

warning message on log off when application is running

How can I make a warning message when a user is trying to logoff windows while an application made with labview is still running ?
I want to pop something that ask the user if he's sure he wants to quit.
 
thanks
0 Kudos
Message 1 of 6
(3,171 Views)

When a user logs off two things will happen:

LV will display a message with the text: Quit will abort all running VIs. With two buttons Quit and Cancel.

Windows will detect, that the programm is not ending and will display a message about this and a time is running after that Windows will abort the program. This time can be set somewhere in the Windows settings.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 6
(3,161 Views)
Thanks for the help but this works only with VIs, not with the executable. When I log off, the executable close without any warnings. Any ideas on that?
 
 
0 Kudos
Message 3 of 6
(3,155 Views)
 

fmartin,

Have you seen the Application Instance Close? event?



Regards,

Simon H
Applications Engineer
National Instruments
http://www.ni.com/support/

 

Message Edited by Simon H on 02-09-2007 06:56 PM

0 Kudos
Message 4 of 6
(3,142 Views)
I was working on just this issue today. Here is a vi (in 7.1.1) and an exe showing it. The exe has been renamed to a .llb to get around some attachment restrictions, so rename it (after scanning with you antivirus of choice!).  I can make it in 8.0 if needed (don't currently have 8.2 installed)
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Download All
Message 5 of 6
(3,137 Views)
Thanks a lot to both of you!
0 Kudos
Message 6 of 6
(3,120 Views)