LabVIEW VI Error Handling

NI-IMAQdx VI

LabVIEW VI Error Handling

Every NI-IMAQdx VI contains an error in input cluster and an error out output cluster. The clusters contain a Boolean that indicates whether an error occurred, the code for the error, and the source or 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-IMAQ function.

You can use the Simple Error Handler VI (Functions»Time&Dialog) to check for errors that occur while executing a VI. If you wire an error cluster to the Simple Error Handler 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.

Error Codes