LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupting Program Close

I'm designing VI's that operate high voltage devices. I don't want the user to be able to close the VI's without turning off the devices, because I don't want large, sudden voltage changes (or, y'know, devices that run at 3K volts for a week with nobody using them).

Thus, I want a VI that performs a shutdown operation before closing. A search indicates that I can make windows unclosable except by a VI's Off button; is there any other way to accomplish this?

(I'm using LabVIEW 8.5.)
0 Kudos
Message 1 of 4
(2,710 Views)
Take a look in the example finder at the Events example called Dynamically Monitor VI's.vi it demonstrates how to capture the event of a user closing your program. So if they close it using the X in the top corner, it will capture this as an event, and you deal with it as you please. There was another thread about this very recently, I looked briefly for it but couldn't find it, maybe someone could link it for you if they find it.
Jeff


Using Labview 7 Express
0 Kudos
Message 2 of 4
(2,701 Views)
This Link may be of use to you:

http://forums.ni.com/ni/board/message?board.id=170&message.id=282782#M282782

Cheers
0 Kudos
Message 3 of 4
(2,696 Views)
Alright, thanks guys.

(I've also discovered that there's an option for this as an Event Structure trigger. Not sure why I missed that, but I think I may use it here.)
0 Kudos
Message 4 of 4
(2,672 Views)