Setting up Error I/O in a VI

Most VIs and functions provide error I/O information. This information is useful to identify the location of errors on the block diagram that occur at run time.

Complete the following steps to set up error I/O in a VI.

  1. Create an error cluster control by right-clicking a subVI or function error in terminal and selecting Create»Control from the shortcut menu. You also can find the error cluster controls on the Array, Matrix & Cluster and Classic Array, Matrix & Cluster palettes.
  2. With the first subVI or function, wire the error out output to the error in input of the next subVI or function.
  3. Repeat step 2 for subsequent subVIs and functions until you reach the last subVI or function in the data flow.
  4. On the last function or subVI, create an error indicator by right-clicking the error out parameter and selecting Create»Indicator from the shortcut menu.
  5. On the connector pane of the VI, wire the error in control to a terminal and the error out indicator to another terminal.
Note  LabVIEW standard is to wire error in to the lower left terminal and error out to the lower right terminal on the connector pane.

Some VIs and functions return errors with numeric error codes instead of error clusters. If a VI uses the error or error code output instead of the error out output, wire an error handler VI to the VI.