beautypg.com

Digilent WaveForms User Manual

Page 53

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 53 of 85


FDwfAnalogIOChannelInfo
(HDWF hdwf,

int

idxChannel,

int

*pnNodes)

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

pnNodes – Pointer to variable to return the number of node .

The function above returns the number of nodes associated with the specified channel.


FDwfAnalogIOChannelNodeName
(
HDWF hdwf,

int

idxChannel,

char

szNodeName[32],

char

szUnits[16])

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

szNodeName – Pointer to character array to return the node name.

-

szUnits – Pointer to character array to return the value units.

The function above returns the node name (“Voltage”, “Current”…) and units (“V”, “A”) for an Analog I/O node.


FDwfAnalogIOChannelNodeInfo
(
HDWF hdwf,

int

idxChannel,

int

idxNode, ANALOGIO *panalogio)

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

idxNode – Node index.

-

panalogio – Pointer to variable to return the node type.

The function above returns the supported channel nodes. They are returned (by reference) as a bit field. This bit
field can be parsed using the IsBitSet Macro. Individual bits are defined using the ANALOGIO constants in dwf.h.
The acquisition mode selects one of the following modes, ANALOGIO:

ANALOGIO Modes

ANALOGIO Mode Functions

analogioEnable

Enable I/O node; used to enable a power supply, reference voltage, etc.

analogioVoltage

Voltage I/O node; used to input/output voltage levels.

analogioCurrent

Current I/O node; used to input/output current levels.

analogioTemperature

Temperature I/O node; used to retrieve read values from a temperature sensor.