Daqgetdevicecount, Daqgetdevicelist, Daqgetdeviceproperties – Measurement Computing Personal Daq rev.6.0 User Manual
Page 153

Personal Daq User’s Manual
Appendix B,
887095
API Commands B-21
daqGetDeviceCount
DLL Function
daqGetDeviceCount(DWORD *deviceCount);
C
daqGetDeviceCount(DWORD *deviceCount);
Visual BASIC
VBdaqGetDevice&(deviceCount&)
Delphi
daqGetDeviceCount(deviceCount:PDWORD);
Parameters
deviceCount
Pointer to which the device count is to be returned
Returns
DerrNoError
No error
See Also
daqGetDeviceList, daqGetDeviceProperties
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
daqGetDeviceCount
returns the number of currently configured devices. This function will return the number of devices currently
configured in the system. The Personal Daq devices need to be present for this function to operate properly.
daqGetDeviceList
DLL Function
DaqGetDeviceList(daqDeviceListT *deviceList, DWORD *deviceCount);
C
DaqGetDeviceList(DaqDeviceListT *deviceList, DWORD *deviceCount);
Visual BASIC
VbdaqGetDeviceList&(ByRef deviceList() As String, ByRef deviceCount&)
Delphi
daqGetDeviceList(deviceList:DeviceListTP; devCount:PDWORD);
deviceList
Pointer to memory location to which the device list is to be returned
Parameters
deviceCount
Number of devices returned in the device list
Returns
DerrNoError
No error
See Also
daqGetDeviceCount, daqGetDeviceProperties, daqOpen,
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
daqGetDeviceList
returns a list of currently configured devices. This function will return the device names in the deviceList
parameter for the number of devices returned by the deviceCount parameter. Each deviceList entry contains a device name
consisting of up to 64 characters. The device name can then be used with the daqOpen function to open the specific device.
daqGetDeviceProperties
DLL Function
daqGetDeviceProperties(LPSTR daqName, daqDevicePropsT *deviceProps);
C
daqGetDeviceProperties(LPSTR daqName, DaqDevicePropsT *deviceProps);
Visual BASIC
VBdaqGetDeviceProperties&(ByVal daqName$, deviceProps As daqDevicePropsT)
Delphi
daqGetDeviceProperties(daqName:string; deviceProps: daqDevicePropsTP);
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 Also
daqGetDeviceCount, daqGetDeviceList, daqOpen
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
daqGetDeviceProperties
returns the properties for the specified device as indicated by 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.