Jump to content

Automatic Error Handling: Difference between revisions

From LabVIEW Wiki
Created definition automatic error handling
(No difference)

Revision as of 03:19, 30 November 2018

Automatic Error Handling deals with the built-in LabVIEW option to allow the system to automatically respond and display and error. By default when automatic error handling is enabled, LabVIEW automatically handles any error when a VI runs by suspending execution, highlighting the subVI or function where the error occurred, and displaying an error dialog box.

To disable automatic error handling for the current VI, select File»VI Properties and select Execution from the Category pull-down menu. To disable automatic error handling for any new, blank VIs you create, select Tools»Options and select Block Diagram from the Category list. To disable automatic error handling for a subVI or function within a VI, wire its error out parameter to the error in parameter of another subVI or function or to an error out indicator.

As it is difficult to enable or disable for the entire code base, the experts have strong opinions on whether automatic error handling should be used. VI Scripting tools have been created to do this.

External Links