Daqgetdeviceproperties, Daqgetdriverversion, Daqgethardwareinfo – Measurement Computing TempBook rev.3.0 User Manual
Page 151

TempBook User’s Manual
daqCommand Reference (Enhanced API) 11-27
daqGetDeviceProperties
DLL Function
daqGetDeviceProperties(LPSTR daqName, DaqDevicePropsT *deviceProps);
C
daqGetDeviceProperties(LPSTR daqName, DaqDevicePropsT *deviceProps);
Visual BASIC
VBdaqGetDeviceProperties( daqName$, deviceProps as DaqDevicePropsT)
Delphi
daqGetDeviceProperties( daqName: string; var deviceProps: DaqDevicePropsT)
Parameters
daqName
Pointer to a character string representing the name of the device for which to retrieve properties
deviceCount
Number of devices returned in the device list
Returns
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqGetDeviceCount, daqGetDeviceList, daqOpen
Program References
None
Used With
All devices
daqGetDeviceProperties
returns the properties for the specified device. The device is
specified by passing the name of the device in the daqName parameter. This name should be a
valid name of a configured device. The properties for the device are returned in the deviceProps
parameter. deviceProps is a pointer to user-allocated memory which will hold the device-
properties structure. This memory must have been allocated before calling this function.
For detailed device-property structure layout, refer the to Daq Device Properties Definition table.
If this function fails, make sure the daqName parameter references a valid device which is currently
configured. This can be checked via the Daq* Configuration applet located in the Control Panel.
Refer to the configuration section in your device’s user manual for more details.
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 (also, refer to API Error Codes on page 11-39)
See Also
daqGetHardwareInfo
Program References
ERREX.PAS (Delphi)
Used With
All devices
daqGetDriverVersion
allows you to get the revision level of the driver currently in use.
daqGetHardwareInfo
DLL Function
daqGetHardwareInfo(DaqHandleT handle, DaqHardwareInfo whichInfo, VOID * info);
C
daqGetHardwareInfo(DaqHandleT handle, DaqHardwareInfo whichInfo, VOID * info);
Visual BASIC
VBdaqGetHardwareInfo&(ByVal handle&, ByVal whichInfo&, info As Variant)
Delphi
daqGetHardwareInfo(handle:DaqHandleT; whichInfo:DaqHardwareInfo; info:pointer)
Parameters
handle
Handle to the device
whichInfo
Specifies what type of device information to retrieve
* info
Pointer to the returned device information
Returns
DerrNoError
- No error (also, refer to API Error Codes on page 11-39)
See Also
daqGetDriverVersion, daqOpen
Program References
DACEX.PAS, ERREX.PAS (Delphi)
Used With
All devices
daqGetHardwareInfo
allows you to retrieve specific hardware information for the specified
device. The device handle must be a valid device handle that is currently open. To open a device,
see the daqOpen function.