Digilent WaveForms User Manual

Page 9

Advertising
background image

WaveForms™ SDK Reference Manual

Copyright Digilent, Inc. All rights reserved.

Other product and company names mentioned may be trademarks of their respective owners.

Page 9 of 85

FDwfEnumDeviceName(

int

idxDevice,

char

szDeviceName[32])

Parameters:

-

idxDevice – Index of the enumerated device.

-

szDeviceName – Pointer to character array to return the device name by reference.

The function above is used to retrieve the device name of the enumerated device.


FDwfEnumSN
(

int

idxDevice,

char

szSN[32])

Parameters:
-

idxDevice – Index of the enumerated device.

-

szSN – Pointer to character array to return the serial number by reference.

The function above is used to retrieve the 12-digit, unique serial number of the enumerated device.


FDwfEnumConfig
(

int

idxDevice,

int

*pcConfig)

Parameters:
-

idxDevice – Index of the enumerated device.

-

pcConfig – Integer pointer to return count of found configurations by reference.

Calling the function above will build an internal list of detected configurations for the selected device. The function
above must be called before using other FDwfEnumConfigInfo function because this obtains information about
configurations from this list identified by the configuration index.


FDwfEnumConfigInfo
(

int

idxConfig, DwfEnumConfigInfo info,

int

*pValue)

Parameters:

-

idxConfig – Index of the configuration for which to return the information.

-

info – Information type.

-

pValue – Integer pointer to return selected information type by reference.

The function above is used to return information about the configuration. The information types,
DwfEnumConfigInfo, are declared in dwf.h:

DECIAnalogInChannelCount

DECIAnalogOutChannelCount

DECIAnalogIOChannelCount

DECIDigitalInChannelCount

DECIDigitalOutChannelCount

DECIDigitalIOChannelCount

DECIAnalogInBufferSize

DECIAnalogOutBufferSize

DECIDigitalInBufferSize

DECIDigitalOutBufferSize

Advertising