LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check the existence of file without any error dialog?

Hi everybody,

I am trying update some labview programs from LV6.1 to LV7.1, I used the
function "File/Dictionary Info" to check if the file
exists or not (if the size=0 then file does not exist), and it ran well with
LV6.1, but now it shows every time a labview error dialog
about "LabView: file not found..." with 7.1, if this file dosn't exist.

Sometimes I feel that it is really stupid to show the dialog, because I
can write handling by myself, if the error should be handled, and
I don't want all the process is interrupted because of such dialogs. Is
there any way to shut the dialog down or check the existence of
file smoothly?

Thanks a lot!

L.Wang


0 Kudos
Message 1 of 2
(2,361 Views)

Hello,

The dialog is probably appearing because you have Auto Error Handling turned on.  This feature is turned on by default in LabVIEW 7.0.  You should go to VI Properties (Ctrl-I) > Execution and deselect "Enable automatic error handling".  Also you should go to Tools > Options > New and Changed in LabVIEW 7.x and deselect "Enable automatic error handling in new VIs".  If you never want to see one of those dialogs again, you can also deselect "Enaeble automatic error handling dialogs"...I wouldn't recommend this, however, as you would never know if one of your VIs had this setting enabled...you would only find out once somebody else tried to use your VI on another LabVIEW install.

-D

0 Kudos
Message 2 of 2
(2,355 Views)