D-23, Daqgetdeviceproperties, Daqgetdriverversion – Measurement Computing WaveBook rev.3.0 User Manual
Page 219: Daqgetinfo

WaveBook User’s Manual,
6-24-99
daqX API - Command Reference D-23
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)
daqName
Pointer to a character string representing the name of the device for which to retrieve
properties
Parameters
deviceCount
Number of devices returned in the device list
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqGetDeviceCount, daqGetDeviceList, daqOpen
Program References
None
Used With
All devices
Description
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 (see the API Error Codes table at the end of this chapter).
See Also
daqGetHardwareInfo
Program References
ERREX.PAS (Delphi)
Used With
All devices
Description
daqGetDriverVersion
allows you to get the revision level of the driver currently in use.
daqGetInfo
DLL Function
DaqGetInfo(DaqHandleT handle, DWORD channel, DaqInfo whichInfo, VOID * info);
C
daqGetInfo(DaqHandleT handle, DWORD channel, DaqInfo whichInfo, VOID * info);
Visual BASIC
VBdaqGetHardwareInfo&(ByVal handle&, ByVal whichInfo&, info As Variant)
Delphi
daqGetHardwareInfo(handle:DaqHandleT; whichInfo:DaqHardwareInfo; info:pointer)
handle
Handle to the device
channel
Specifies the channel for which information is to be retrieved.
whichInfo
Specifies what type of device information to retrieve
Parameters
* info
Pointer to the returned device information
Returns
DerrNoError
No error (see the API Error Codes table at the end of this chapter).
See Also
daqGetDriverVersion, daqOpen, daqGetHardwareInfo
Program References
None
Used With
All devices
Description
daqGetInfo
allows you to retrieve specific hardware and configuration 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.