Error code format, Error code format -13 – National Instruments NI-IMAQ User Manual

Page 39

Advertising
background image

Chapter 4

Programming with NI-IMAQ for 1394 VIs

© National Instruments Corporation

4-13

NI-IMAQ for IEEE-1394 Cameras User Manual

Error Code Format

Error format for all NI-IMAQ for 1394 VIs is the same, as follows:

error in (no error) is a cluster that describes the error status before this VI
executes. If error in indicates that an error occurred before this VI was
called, this VI may choose not to execute its function, but just pass the error
through to its error out cluster. If no error has occurred, then this VI
executes normally and sets its own error status in error out. Use the error
handler VIs to look up the error code and to display the corresponding error
message. Using error in and error out clusters is a convenient way to
check errors and to specify execution order by wiring the error output from
one subVI to the error input of the next.

status is TRUE if an error occurred before this VI was called, or
FALSE if not. If status is TRUE, code is a non-zero error code. If
status is FALSE, code can be zero or a warning code.

code is the number identifying an error or warning. If status is
TRUE, code is a non-zero error code. If status is FALSE, code can
be zero or a warning code. Use the error handler VIs to look up the
meaning of this code and to display the corresponding error
message.

source is a string that indicates the origin of the error, if any.
Usually source is the name of the VI in which the error occurred.

error out is a cluster that describes the error status after this VI executes.
If an error occurred before this VI was called, error out is the same as
error in. Otherwise, error out shows the error, if any, that occurred in this
VI. Use the error handler VIs to look up the error code and to display the
corresponding error message. Using error in and error out clusters is a
convenient way to check errors and to specify execution order by wiring the
error output from one subVI to the error input of the next.

status is TRUE if an error occurred, or FALSE if not. If status is
TRUE, code is a non-zero error code. If status is FALSE, code can
be zero or a warning code.

Advertising