LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Checking a: drive has disk or not I get LabVIEW.exe error- don't want warning

I am writing a function where the operator can save a screen dump for printing out. The PC is not networked, so the preferred solution is to save to removeable disk then print elsewhere. This is a touch screen based real-time process monitor.
I am using 'Volume Info' function in Labview 7 to check if a floppy disk is inserted in the a: drive. If one is present, then operator will have choice of saving to floppy, otherwise to the hard disk. If no drive is present (as on my portable), then it works OK, but if drive present AND no disk then I get LabVIEW.exe error dialog (this is not the labview error handler). The dialog box slows my real-time daq loop, and is not part of my User Interface Plan.


Are there any other ways of checking that a disk is present or is it a feature of Windows 2000?
0 Kudos
Message 1 of 4
(2,941 Views)
Actually, that's a BIOS function. Other than disabling the floppy drive in BIOS, I think you're going to get some kind of error. What you can do, is create an error handler that when it DOES get the inevitable missing floppy error, it tells the executable to continue, anyway. See the error handling examples.

Hope this helps

Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 2 of 4
(2,941 Views)
Thanks Eric, the trouble with the error is that it is a labview.exe error, with a windows type dialog and I don't know how to get to this with the standard Labview error handlers before the more serious error occurs. I am worried that Labview could crash out which would be a problem.

I can't disable the floppy as I've got to provide access through the floppy drive as not all the systems will be networked.

Lucy
0 Kudos
Message 3 of 4
(2,941 Views)
Using Volume Info or File/Directory Info under LabView 7 and Windows 2000, if you wire Error Out you'll get no dialog. If Error Out is unwired, you'll get a dialog for errors. It's part of the automatic error handling built into LabView 7. If you want to handle the error yourself and not have LabView display the dialog box, wire Error Out.
How are you using Volume Info to check if the disk is inserted? An easy way is to use Error Out: if Error Out Status is True, you can't use the floppy.
0 Kudos
Message 4 of 4
(2,941 Views)