beautypg.com

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

Page 277

background image


daqSetDefaultErrorHandler

Also See: daqDefaultErrorHandler, daqGetLastError,

daqProcessError, daqSetErrorHandler

Format

daqSetDefaultErrorHandler(handler)

Purpose

daqSetDefaultErrorHandler

sets the driver to use the default error handler specified for all devices.

Parameter Summary

Parameter Type

Description

handler DaqErrorHandlerFPT

Pointer to a user-defined error handler function.

Parameter Values

handler:

a pointer to a user-defined function

Returns

DerrNoError

No

error

Function Usage

The daqSetDefaultErrorHandler function allows you to set the driver to use a default error handler
specified by the DaqErrorHandleFPT. The DaqErrorHandleFPT parameter should point to the function
defined by the application that will be used to process the error codes passed to it. This parameter should be set prior
to calling the function. This function can also be used to disable on-screen error reporting by setting the
DaqErrorHandleFPT

to null(0).

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

Prototypes

C/C++

daqSetDefaultErrorHandler(DaqErrorHandlerFPT handler);

Visual BASIC

VBdaqSetDefaultErrorHandler&(ByVal handler&)

Program References

None

Programmer’s Manual

908794

Daq API Command Reference 4.5-47