Instrument Control Error Handling

It is important to perform error handling in instrument control applications because there are several potential sources for errors. Error handling with instrument driver VIs is similar to error handling with other I/O VIs in LabVIEW. Each instrument driver VI contains an error in input and an error out output for passing error clusters from one VI to another. The error cluster contains a Boolean flag that indicates if an error occurred, an error code number, and a string that contains the location of the VI where the error occurred.

Use the Simple Error Handler or General Error Handler VIs to detect and report these errors in an application.