2 configuration, Configuration – Digilent WaveForms User Manual

Page 18

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

5.2 Configuration


FDwfAnalogInFrequencyInfo
(HDWF hdwf,

double

*phzMin,

double

*phzMax)

Parameters:
-

hdwf – Interface handle.

-

phzMin – Pointer to return the minimum allowed frequency.

-

phzMax – Pointer to return the maximum allowed frequency.

The function above is used to retrieve the minimum and maximum (ADC frequency) settable sample frequency.


FDwfAnalogInFrequencySet
(HDWF hdwf,

double

hzFrequency)

Parameters:
-

hdwf – Interface handle.

-

hzFrequency – Acquisition frequency to set.

The function above is used to set the sample frequency for the instrument.


FDwfAnalogInFrequencyGet
(HDWF hdwf,

double

*phzFrequency)

Parameters:
-

hdwf – Interface handle.

-

phzFrequency – Variable to receive the acquisition frequency.

The function above is used to read the configured sample frequency. The AnalogIn ADC always runs at maximum
frequency, but the method in which the samples are stored in the buffer can be individually configured for each
channel with FDwfAnalogInChannelFilterSet function.


FDwfAnalogInBitsInfo
(HDWF hdwf,

int

*pnBits)

Parameters:
-

hdwf – Interface handle.

-

pnBits – Variable to receive the number of ADC bits.

The function above is used to retrieve the number bits used by the AnalogIn ADC.


FDwfAnalogInBufferSizeInfo
(HDWF hdwf,

int

*pnSizeMin,

int

*pnSizeMax)

Parameters:

-

hdwf – Interface handle.

-

pnMin – Pointer to return the minimum buffer size.

-

pnMax – Pointer to return the maximum buffer size.

The function above returns the minimum and maximum allowable buffer sizes for the instrument.

Advertising