LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why WriteCharsToFile VI has no error out?

I am using this simple VI to log a line of text to a file but I see that
this VI doesn't have any error output? How do I know if chars can't be
written to the file.


vishi
0 Kudos
Message 1 of 4
(2,702 Views)
It's pretty much certain that string input wired to the "Write Characters To File" function will be written to the selected file unless user select the cancel button (you can check for this condition with the new file path output). For more flexibility and error control you can use the intermediate file I/O functions (functions on the middle row of FILE I/O function).
Message 2 of 4
(2,702 Views)
If you were to look inside the VI, you would see that all of the subVIs do have error in/error out connections and that there the General Error Handler function as the last VI called. If an error does occur, you will get a dialog box that displays the error and you'll get a stop/continue question. If you want to do your own error handling, simply remove the General Error Handler function, add Error In and Error Out clusters to the connector and save the VI as a different name.
Message 3 of 4
(2,702 Views)
Thanks.

I should have clicked on the VI before asking.


vishi

"Dennis Knutson" wrote in message
news:506500000005000000C2EF0000-1042324653000@exchange.ni.com...
> If you were to look inside the VI, you would see that all of the
> subVIs do have error in/error out connections and that there the
> General Error Handler function as the last VI called. If an error does
> occur, you will get a dialog box that displays the error and you'll
> get a stop/continue question. If you want to do your own error
> handling, simply remove the General Error Handler function, add Error
> In and Error Out clusters to the connector and save the VI as a
> different name.
0 Kudos
Message 4 of 4
(2,702 Views)