Daqgetdriverversion, Daqgetlasterror, Daqioread – Measurement Computing Personal Daq rev.6.0 User Manual
Page 154

B-22 API Commands
Appendix B,
887095
Personal Daq User’s Manual
daqGetDriverVersion
DLL Function
daqGetDriverVersion(PDWORD version);
C
daqGetDriverVersion(PDWORD version);
Visual BASIC
VBdaqGetDriverVersion&(version&)
Delphi
daqGetDriverVersion(var version:DWORD)
Parameters
version
Pointer to the version number of the current device driver.
Returns
DerrNoError
No error
See Also
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
daqGetDriverVersion
allows you to get the revision level of the driver currently in use.
daqGetLastError
DLL Function
daqGetLastError(DaqHandleT handle, daqError *errCode);
C
daqGetLastError(DaqHandleT handle, DaqError *errCode);
Visual BASIC
VBdaqGetLastError&(ByVal handle&, errCode&)
Delphi
daqGetLastError(handle:DaqHandleT; var errCode:daqError);
handle
Handle to the device
Parameters
*errCode
Returned last error code
Returns
DerrNoError
No error
See Also
daqDefaultErrorHandler, daqProcessError, daqSetDefaultErrorHandler
Program References
None
Used With
All devices
Description
daqGetLastError
allows you to retrieve the last error condition registered by the driver.
daqIORead
DLL Function
daqIORead(DaqHandleT handle, daqIODeviceType devType, daqIODevicePort devPort, DWORD
whichDevice, daqIOExpansionPort whichExpPort, PDWORD value);
C
daqIORead(DaqHandleT handle, DaqIODeviceType devType, DaqIODevicePort devPort, DWORD
whichDevice, DaqIOExpansionPort whichExpPort, PDWORD value);
Visual BASIC
VBdaqIORead&(ByVal handle&, ByVal devType&, ByVal devPort&, ByVal whichDevice&,
ByVal whichExpPort&, value&)
Delphi
daqIORead(handle:DaqHandleT; devType:daqIODeviceType; dvPort:daqIODevicePort;
whichDevice:DWORD; whichExpPort:daqIOExpansionPort; var value:DWORD);
handle
Handle to the device to perform the IO read
devType
IO Device type
devPort
IO port selection
whichDevice
IO device instance to read from
whichExpPort
IO device expansion port to read from
Parameters
value
IO value read
Returns
DerrNoError
No error
See Also
daqIOReadBit, daqIOWrite, daqIOWriteBit
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.