Daqgetdevicelist – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 239

Advertising
background image

Programmer’s Manual

908794

Daq API Command Reference 4.5-9



daqGetDeviceList

Also See:

daqGetDeviceCount, daqOpen

Format

daqGetDeviceList (deviceList, deviceCount)

Purpose

daqGetDeviceList

returns a list of currently configured device names.

Parameter Summary

Parameter Type

Description

deviceList DaqDeviceListT

Pointer to memory location to which the device list is to be returned

deviceCount DWORD

Number of devices returned in the device list

Parameter Values

deviceList:

pointer to an array of returned device names, each name containing up to 64 characters

deviceCount:

valid values range from 1 to 4

Returns

DerrNoError

No error

Function Usage

The daqGetDeviceList function will return the device names in the deviceList parameter for the number
of devices returned by the deviceCount parameter. The deviceList entry contains an array of device names
each consisting of up to 64 characters. Each device name can then be used with the daqOpen function to open the
specific device. The DaqDeviceListT parameter must point to an appropriately sized memory area which can
hold all the names for all the configured devices before calling this function. If it is not known how many devices
are configured, then call the daqGetDeviceCount function before calling this function.

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.

Prototypes

C/C++

daqGetDeviceList(DaqDeviceListT *deviceList, DWORD *deviceCount);

Visual BASIC

VBdaqGetDeviceList&(devList As DaqDeviceListT, devCount As Long)

Program References

DAQADCEX01.CPP

Advertising