Daqprocesserror, Daqsetdefaulterrorhandler, Daqseterrorhandler – Measurement Computing TempBook rev.3.0 User Manual
Page 153

TempBook User’s Manual
daqCommand Reference (Enhanced API) 11-29
daqProcessError
DLL Function
daqProcessError(DaqHandleT handle, DaqError errCode);
C
daqProcessError(DaqHandleT handle, DaqError errCode);
Visual BASIC
VBdaqProcessError&(ByVal handle&, ByVal errCode&)
Delphi
daqProcessError(handle:DaqHandleT; errCode:DaqError)
Parameters
handle
Handle to the device for which the specified error is to be processed.
errCode
Specifies the device error code to process
Returns
Refer to API Error Codes on page 11-39
See Also
daqSetDefaultErrorHandler, daqGetLastError, daqDefaultErrorHandler
Program References
None
Used With
All devices
daqProcessError
allows an application to initiate an error for processing by the driver. This
command can be used when it is desirable for the application to initiate processing for a device-
defined error.
daqSetDefaultErrorHandler
DLL Function
daqSetDefaultErrorHandler(DaqErrorHandlerFPT handler);
C
daqSetDefaultErrorHandler(DaqErrorHandlerFPT handler);
Visual BASIC
VBdaqSetDefaultErrorHandler&(ByVal handler&)
Delphi
daqSetDefaultErrorHandler(handler:DaqErrorHandlerFPT)
Parameters
handler
Pointer to a user-defined error handler function.
Returns
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqDefaultErrorHandler, daqGetLastError, daqProcessError, daqSetErrorHandler
Program References
ERREX.PAS (Delphi)
Used With
All devices
daqSetDefaultErrorHandler
allows you to set the driver to use the default error handler
specified for all devices.
daqSetErrorHandler
DLL Function
daqSetErrorHandler(DaqHandleT handle, DaqErrorHandlerFPT handler);
C
daqSetErrorHandler(DaqHandleT handle, DaqErrorHandlerFPT handler);
Visual BASIC
VBdaqSetErrorHandler&(ByVal handle&, ByVal handler&)
Delphi
daqSetErrorHandler(handle:DaqHandleT; handler:DaqErrorHandlerFPT)
Parameters
handle
Handle to the device to which to attach the specified error handler
handler
Pointer to a user defined error handler function.
Returns
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqSetDefaultErrorHandler, daqDefaultErrorHandler, daqGetLastError,
daqProcessError
Program References
ADCEX1.C, DYN32ENH.C, DAQEX.FRM (VB), ERREX.PAS (Delphi)
Used With
All devices
daqSetErrorHandler
specifies the routine to call when an error occurs in any command. The
default routine displays a message and then terminates the program. If this is not desirable, use this
command to specify your own routine to be called when errors occur. If you want no action to occur
when a command error is detected, use this command with a null (0) parameter. The default error
routine is daqDefaultHandler.