Find First Error VI

Tests the error status of one or more low-level functions or subVIs that produce a numeric error code as output.


icon

Inputs/Outputs

  • c1di32.png error codes

    error codes is an array of the numeric error codes assembled from local subVIs or functions. If there is no error indicated in the error in cluster, the VI tests these codes in ascending order for nonzero values. If the VI finds a nonzero value, error out reflects the error status of that input.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • cstr.png source messages

    source messages contains the source message you want to appear in the error out cluster if the VI finds an error in error codes. Place each message on a separate line in a string constant or control. Use of this input is optional.

  • ibool.png error?

    error? is TRUE if the error in cluster or any of the error codes reflects an error.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • If this VI finds an error, it sets the parameters in the error out cluster. You can wire this cluster to the Simple Error Handler or General Error Handler to identify the error and describe it to the user.