LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you check to see if a network drive is available without getting non-fatal errors?

I have tried the GetDrive() and GetDir(). I have tried the SetDrive() and SetDir(). All of these cause the non-fatal error's that produce a dialog box during execution. I can continue and the program works like I had wanted it to work.
0 Kudos
Message 1 of 2
(2,958 Views)
What sort of dialog box appears ?
If its the CVI warning msg that a run time error has occured, this will not be displayed when you build your executable ?

If you are not running in an exe or for some reason you have enabled run time error reporting, you can disable it from the Options -> Run Options menu on the main project and disble Break on library errors.
Or if it has been set by a module in your project you can programitically disable by using the SetBreakOnLibraryErrors (0); function. (Do a Ctrl P on that function to see the other available commands).

Hope this helps,

Chris
0 Kudos
Message 2 of 2
(2,958 Views)