LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File Dialog generates error 43 when user cancels the dialog - so what good is the CANCELLED indicator?

, Yes,

The following condition all have to be TRUE:

  • any error node that isn't connected to a wire or a sink
  • the error is TRUE
  • automatic error handling is enabled for the VI where the node resides


You will get a dialog (continue/ignore).

 

To be a bit more specific about the third condition, if you develop a VI and disable automatic error handling and this VI is place inside another VI and the error out is not connected in that VI the owning VI will generate an automatic error dialog.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 21 of 22
(2,077 Views)

Thanks to all for your inputs.  I think we got it straight now. The original question of “why have a cancelled output if the error is still generated” should now be understood. The idea is that the code needs to do different things if cancelled is pressed or not. The cancelled output indicates which path the code should take. The only thing we missed was that the error out needs to be connected to something, even a “dead end” (which now we know is called a sink), to supress the error. This all makes sense now! Till next time...

Smiley Happy

0 Kudos
Message 22 of 22
(2,041 Views)