Daqdefaulterrorhandler – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 231

Advertising
background image

daqDefaultErrorHandler

Also See: daqGetLastError, daqProcessError,

daqSetDefaultErrorHandler

Format

daqDefaultErrorHandler(handle, errCode)

Purpose

daqDefaultErrorHandler

displays an error message and then exits the application program.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device to which will be attached to the default error handler

errCode DaqError Error code number of the detected error

Parameter Values

handle:

obtianed form the daqOpen function

errCode:

valid return values can be found in the Daq Error Table

Returns

None

Function Usage

When the device library is loaded, it invokes the default error handler whenever it encounters an error. The error
handler may be changed with daqSetErrorHandler.

For more details on error messages refer to the Daq Error Table.

Prototypes

C/C++

daqDefaultErrorHandler(DaqHandleT handle, DaqError errCode);

Visual BASIC

VBdaqDefaultErrorHandler(ByVal handle&, ByVal errCode&)

Program References

DAQADCEX05.CPP, DAQADCEX06.CPP

Programmer’s Manual

908794

Daq API Command Reference 4.5-1


Advertising