Error Handling

NI-IMAQdx

Error Handling

Every NI-IMAQdx VI contains an error in input cluster and an error out output cluster. The clusters, shown in the following figure, contain a Boolean value that indicates whether an error occurred, the code for the error, and the source or the name of the VI that returned the error. If error in indicates an error, the VI passes the error information to error out and does not execute any NI-IMAQdx function.




You can use the Simple Error Handler VI, located on the Functions»Dialog & User Interface palette, to check for errors that occur while executing a VI. If you wire an error cluster to the Simple Error Handle VI, the VI deciphers the error information and displays a dialog box that describes the error. If no error occurred, the Simple Error Handler VI does nothing. The following figure illustrates wiring an NI-IMAQdx VI to the Simple Error Handler VI.