D-27, Daqopen, Daqprocesserror – Measurement Computing WaveBook rev.3.0 User Manual
Page 223: Daqsetdefaulterrorhandler

WaveBook User’s Manual,
6-24-99
daqX API - Command Reference D-27
daqOpen
DLL Function
daqOpen(LPSTR daqName);
C
daqOpen(LPSTR daqName);
Visual BASIC
VBdaqOpen&(ByVal daqName$)
Delphi
daqOpen(devName: PChar)
Parameters
daqName
String representing the name of the device to be opened
Returns
A handle to the specified device (see the API Error Codes table at the end of this chapter).
See Also
daqClose, daqOnline
Program References
ADCEX1.C, DIGEX1.C, DYN32ENH.C, DAQEX.FRM (VB), ERREX.PAS, ADCEX.PAS (Delphi)
Used With
Description
daqOpen
allows you to open an installed Daq* device for operation. The daqOpen function will initiate a session for the device name
specified by the daqName parameter by opening the device, initializing it, and preparing it for further operation. The daqName specified
must reference a currently configured device. See Daq* Configuration utility (in the …Installation chapters) for more details on configuring
devices and assigning device names.
daqOpen
should be performed prior to any other operation performed on the device. This function will return a device handle that is used
by other functions to reference the device. Once the device has been opened, the device handle should be used to perform subsequent
operations on the device.
Most functions in this manual require a device handle in order to perform their operation. When the device session is complete,
daqClose
may be called with the device handle to close the device session.
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
(see the API Error Codes table at the end of this chapter).
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 the API Error Codes table at the end of this chapter).
See Also
daqDefaultErrorHandler, daqGetLastError, daqProcessError, daqSetErrorHandler
Program References
ERREX.PAS (Delphi)
Used With
All devices
Description
daqSetDefaultErrorHandler
allows you to set the driver to use the default error handler specified for all devices.