Jump to content

Automatic Error Handling: Difference between revisions

From LabVIEW Wiki
Created definition automatic error handling
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''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.
'''Automatic Error Handling''' deals with the built-in LabVIEW option to allow the system to automatically respond and display an 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.
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.
Line 6: Line 6:


== External Links ==
== External Links ==
*[[http://www.ni.com/getting-started/labview-basics/handling-errors Error Handling Basics by NI]]
*[http://www.ni.com/getting-started/labview-basics/handling-errors Error Handling Basics by NI]


[[Category:Error Handling]]
[[Category:Error Handling]]

Latest revision as of 04:57, 30 November 2018

Automatic Error Handling deals with the built-in LabVIEW option to allow the system to automatically respond and display an 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