Daqprocesserror, Daqsetdefaulterrorhandler, Daqseterrorhandler – Measurement Computing Personal Daq rev.6.0 User Manual
Page 158

B-26 API Commands
Appendix B,
887095
Personal Daq User’s Manual
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)
handle
Handle to the device for which the specified error is to be processed.
Parameters
errCode
Specifies the device error code to process
Returns
Refer to API Error Codes on page page B-33.
See Also
daqSetDefaultErrorHandler, daqGetLastError, daqDefaultErrorHandler
Program References
None
Used With
All devices
Description
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
See Also
daqDefaultErrorHandler, daqGetLastError, daqProcessError, daqSetErrorHandler
Program References
ADCEX1.C, FREQEX1.C, PULSEEX1.C, MULTEX1.C, DIGEX1.C, INITEX1.C, DAQEX.FRM (VB),
DAQEX.PAS (Delphi)
Used With
All devices
Description
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)
handle
Handle to the device to which to attach the specified error handler
Parameters
handler
Pointer to a user defined error handler function.
Returns
DerrNoError
No error
See Also
daqSetDefaultErrorHandler, daqDefaultErrorHandler, daqGetLastError, daqProcessError
Program References
ADCEX1.C, FREQEX1.C, PULSEEX1.C, MULTEX1.C, DIGEX1.C, INITEX1.C, DAQEX.FRM (VB),
DAQEX.PAS (Delphi)
Used With
Description
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
.