Omega OMB-DAQ-54 User Manual page 155

Usb data acquisition modules
Table of Contents

Advertisement

DLL Function
daqGetDriverVersion(PDWORD version);
C
daqGetDriverVersion(PDWORD version);
VBdaqGetDriverVersion&(version&)
Visual BASIC
daqGetDriverVersion(var version:DWORD)
Delphi
version
Parameters
Returns
DerrNoError
See Also
ADCEX1.C, FREQEX1.C, PULSEEX1.C, MULTEX1.C, DIGEX1.C, INITEX1.C, DAQEX.FRM (VB),
Program References
DAQEX.PAS (Delphi)
Used With
All devices
Description
daqGetDriverVersion allows you to get the revision level of the driver currently in use.
daqGetLastError(DaqHandleT handle, daqError *errCode);
DLL Function
C
daqGetLastError(DaqHandleT handle, DaqError *errCode);
Visual BASIC
VBdaqGetLastError&(ByVal handle&, errCode&)
daqGetLastError(handle:DaqHandleT; var errCode:daqError);
Delphi
Parameters
handle
*errCode
Returns
DerrNoError
daqDefaultErrorHandler, daqProcessError, daqSetDefaultErrorHandler
See Also
None
Program References
Used With
All devices
Description
daqGetLastError allows you to retrieve the last error condition registered by the driver.
daqIORead(DaqHandleT handle, daqIODeviceType devType, daqIODevicePort devPort, DWORD
DLL Function
whichDevice, daqIOExpansionPort whichExpPort, PDWORD value);
C
daqIORead(DaqHandleT handle, DaqIODeviceType devType, DaqIODevicePort devPort, DWORD
whichDevice, DaqIOExpansionPort whichExpPort, PDWORD value);
VBdaqIORead&(ByVal handle&, ByVal devType&, ByVal devPort&, ByVal whichDevice&,
Visual BASIC
ByVal whichExpPort&, value&)
daqIORead(handle:DaqHandleT; devType:daqIODeviceType; dvPort:daqIODevicePort;
Delphi
whichDevice:DWORD; whichExpPort:daqIOExpansionPort; var value:DWORD);
Parameters
handle
devType
devPort
whichDevice
whichExpPort
value
DerrNoError
Returns
daqIOReadBit, daqIOWrite, daqIOWriteBit
See Also
Program References
DIGEX1.C, DAQEX.FRM (VB), DAQEX.PAS (Delphi)
Used With
All devices except Personal Daq/54
Description
daqIORead allows you to read the specified port on the selected device. The read operation will return the current state of the port in the
value parameter. Normally, if the selected port is a byte-wide port, the port state will occupy the low-order byte of the value parameter.
Digital IO channels for the port correspond to each bit within this low-order byte. If the bit is set, it indicates the channel is in a high state. If
the bit is not set, the channel is indicated to be in a low state.
B-22
API Commands
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
daqGetDriverVersion
Pointer to the version number of the current device driver.
No error
daqGetLastError
Handle to the device
Returned last error code
No error
daqIORead
Handle to the device to perform the IO read
IO Device type
IO port selection
IO device instance to read from
IO device expansion port to read from
IO value read
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