Omega OMB-DAQ-54 User Manual page 159

Usb data acquisition modules
Table of Contents

Advertisement

DLL Function
daqProcessError(DaqHandleT handle, daqError errCode);
C
daqProcessError(DaqHandleT handle, DaqError errCode);
VBdaqProcessError&(ByVal handle&, ByVal errCode&)
Visual BASIC
daqProcessError(handle:DaqHandleT; errCode:daqError)
Delphi
handle
Parameters
errCode
Refer to API Error Codes on page page B-33.
Returns
daqSetDefaultErrorHandler, daqGetLastError, daqDefaultErrorHandler
See Also
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.
DLL Function
daqSetDefaultErrorHandler(daqErrorHandlerFPT handler);
daqSetDefaultErrorHandler(DaqErrorHandlerFPT handler);
C
Visual BASIC
VBdaqSetDefaultErrorHandler&(ByVal handler&)
Delphi
daqSetDefaultErrorHandler(handler:daqErrorHandlerFPT)
handler
Parameters
DerrNoError - No error
Returns
daqDefaultErrorHandler, daqGetLastError, daqProcessError, daqSetErrorHandler
See Also
Program References
ADCEX1.C, FREQEX1.C, PULSEEX1.C, MULTEX1.C, DIGEX1.C, INITEX1.C, DAQEX.FRM (VB),
DAQEX.PAS (Delphi)
All devices
Used With
Description
daqSetDefaultErrorHandler allows you to set the driver to use the default error handler specified for all devices.
DLL Function
daqSetErrorHandler(DaqHandleT handle, daqErrorHandlerFPT handler);
C
daqSetErrorHandler(DaqHandleT handle, DaqErrorHandlerFPT handler);
VBdaqSetErrorHandler&(ByVal handle&, ByVal handler&)
Visual BASIC
Delphi
daqSetErrorHandler(handle:DaqHandleT; handler:daqErrorHandlerFPT)
Parameters
handle
handler
DerrNoError
Returns
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.
B-26
API Commands
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
daqProcessError
Handle to the device for which the specified error is to be processed.
Specifies the device error code to process
daqSetDefaultErrorHandler
Pointer to a user-defined error handler function.
daqSetErrorHandler
Handle to the device to which to attach the specified error handler
Pointer to a user defined error handler function.
No error
Appendix B,
887095
Personal Daq User's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-daq-55Omb-daq-56

Table of Contents