LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 43 occurred at File Dialog->

when using the file dialog vi and a user cancels the pop up to select a file i get

 

 

Error 43 occurred at File Dialog->

 

and gives the choice to continue or stop

 

 

 

is there any way i can get the vi to not display the error using this vi or do i need to build my own file dialog vi??

 

i believe the vi should provide a boolean out and then its up to the programmer how to handle the cancel

 

 

0 Kudos
Message 1 of 8
(6,393 Views)
It is up to the programmer how to handle the cancel. You've chosen to use automatic error dialogs and you chose not to wire the error out cluster of the function.
0 Kudos
Message 2 of 8
(6,389 Views)

Which File Dialog are you using?  The Express VI has a cancelled? output.

 

You can compare the error code to number 43 and handle it accordingly.

0 Kudos
Message 3 of 8
(6,388 Views)
On your Tools "time and dialog" pallette, there is "clear errors.vi". You can unbundle the error cluster, check for 43 code, case its 43 run "clear errors.vi". In fact, here's a shorter method, you can just replace the error code 43 with zero (& set bool to F and clear the text) when it occurs using a Bundle by Name on the error cluster.
0 Kudos
Message 4 of 8
(6,387 Views)

well error checking must be on by default.

 

 

and thanks for the input i did fix my problem

0 Kudos
Message 5 of 8
(6,381 Views)

HOW did you get it to work?

0 Kudos
Message 6 of 8
(5,757 Views)

As richjoh said:

clear errors.png

0 Kudos
Message 7 of 8
(5,747 Views)

 

The General error handler.vi has this functionality built-in.

 

CancelError.png

Message 8 of 8
(5,741 Views)