beautypg.com

Digilent WaveForms User Manual

Page 23

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


FDwfAnalogInChannelRangeSet
(HDWF hdwf,

int

idxChannel,

double

voltsRange)

Parameters:
-

hdwf – Interface handle.

-

idxChannel – Channel index.

-

voltsRange – Voltage range to set.

The function above is used to configure the range for each channel. With channel index -1, each enabled Analog In
channel range will be configured to the same, new value.



FDwfAnalogInChannelRangeGet
(HDWF hdwf,

int

idxChannel,

double

*pvoltsRange)

Parameters:
-

hdwf – Interface handle.

-

idxChannel – Channel index.

-

pvoltsRange – Variable to receive the current voltage range.

The function above returns the real range value for the given channel.



FDwfAnalogInChannelOffsetInfo
(
HDWF hdwf,

double

*pvoltsMin,

double

*pvoltsMax,

double

*pnSteps)

Parameters:
-

hdwf – Interface handle.

-

pvoltsMin – Variable to receive the minimum offset voltage.

-

pvoltsMax – Variable to receive the maximum offset voltage.

-

pnSteps – Variable to receive the number offset steps.

The function above returns the minimum and maximum offset levels supported, and the number of adjustable
steps.



FDwfAnalogInChannelOffsetSet
(HDWF hdwf,

int

idxChannel,

double

voltOffset)

Parameters:
-

hdwf – Interface handle.

-

idxChannel – Channel index.

-

voltsRange – Channel offset voltage to set.

The function above is used to configure the offset for each channel. When channel index is specified as -1, each
enabled AnalogIn channel offset will be configured to the same level.