03-23-2009 10:59 AM
I have an instrument that generates .dat files at a rate of several a second. The instrument saves the files on a PC. The PC has a LabVIEW .vi that checks for new .dat files. If a file is found, the .vi reads the data, calculates a value, then deletes the file. If the LV application is stopped by someone before the instrument is turned off, the hard drive will fill up within hours.
The .vi is set up to run when opened, but I need a warning message to pop-up in case someone tries to stop the vi.
Any suggestions?
Solved! Go to Solution.
03-23-2009 11:12 AM
Use an Event Structure and use the Panel Close? Event. You can use this event in conjunction with any stop buttons you have. Have a look at the attached image. If you have any questions, post back.
03-23-2009 11:25 AM
Will that work if someone uses Task manager to close the program? Just curious.
03-23-2009 11:31 AM - edited 03-23-2009 11:33 AM
It should work if you use the Application Close? event.
03-23-2009 12:57 PM
When you say this can be used with "any" stop buttons, does this also include the one on the toolbar?
Use an Event Structure and use the Panel Close? Event. You can use this event in conjunction with any stop buttons you have. Have a look at the attached image. If you have any questions, post back. |
03-23-2009 01:04 PM - edited 03-23-2009 01:05 PM
03-23-2009 02:29 PM
Gerd & Adnan,
Hiding the abort button was exactly what I needed. I will incorporate Panel Close? to cover the other .vi exit point.
Have a good day.