Daqgetdevicecount – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 235

Programmer’s Manual
908794
Daq API Command Reference 4.5-5
daqGetDeviceCount
Also See: daqGetDeviceList, daqOpen
Format
daqGetDeviceCount (deviceCount)
Purpose
daqGetDeviceCount
returns the number of currently configured devices
.
Parameter Summary
Parameter Type
Description
deviceCount DWORD
Pointer to which the device count is to be returned
Parameter Values
deviceCount:
a pointer to a single value ranging from 1 to 4
Returns
DerrNoError
No error
Function Usage
The daqGetDeviceCount function will return the number of devices currently configured in the system. The
devices do not need to be opened for this function to properly detect the number of devices configured. If the
number returned does not seem appropriate, the device configuration list should 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 (also see daqOpen for the Daq* Configuration applet example).
Prototypes
C/C++
daqGetDeviceCount(DWORD deviceCount);
Visual BASIC
VBdaqGetDeviceCount&(devCount As Long)
Program References
DAQADCEX01.CPP