beautypg.com

Miscellaneous vis, Errhdlng.vi – Measurement Computing UL for NI LabVIEW User Manual

Page 95

background image

Universal Library Virtual Instruments (VIs)

Miscellaneous VIs

Miscellaneous VIs

ErrHdlng.VI

Sets the error handling for all subsequent VI calls. Most VIs return error codes after each call. In addition
other error handling features have been built into the library. This VI controls those features. If the UL
LabVIEW Extension cannot find the configuration file CB.CFG, it always terminates the program regardless
of the ErrHdlng.VI setting.

Summary:

Input:

ErrReporting

[I32] - Type of error reporting.

Output:

ErrCode

[I32] - Error code. See ErrMsg.VI

Arguments:

ErrReporting

This argument controls when the library will print error messages on the screen.

The default is

DONTPRINT

. If it is set to:

DONTPRINT

- Errors will not generate a message to the screen. In that case your

program must always check the returned error code after each library call to
determine if an error occurred.

PRINTWARNINGS

- Only warning errors will generate a message to the screen. Your

program will have to check for fatal errors.

PRINTFATAL

- Only fatal errors will generate a message to the screen. Your

program must check for warning errors.

PRINTALL

- All errors will generate a message to the screen.

ErrCode

Error code from the Universal Library. Zero if no error occurred. Use the ErrMsg

VI to convert

ErrCode

into a readable string.

Warnings vs. Fatal Errors: All errors that can occur are classified as either "warnings" or "fatal." Errors that
can occur in normal operation in a bug free program (disk is full, too few samples before trigger occurred) are
classified as "warnings." All other errors indicate a more serious problem and are classified as "fatal."

95