beautypg.com

Digilent WaveForms User Manual

Page 82

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


FDwfAnalogOutFrequencyInfo
(
HDWF hdwf,

int

idxChannel,

double

*phzMin,

double

*phzMax)

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

phzMin – Variable to receive the supported minimum frequency.

-

phzMax – Variable to receive the supported maximum frequency.

The function above is used to return the supported frequency range for the instrument. The maximum value
shows the DAC frequency. The frequency of the generated waveform: repetition frequency for standard types and
custom data; DAC update for noise type; sample rate for play type.


FDwfAnalogOutFrequencySet
(HDWF hdwf,

int

idxChannel,

double

hzFrequency)

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

hzFrequency – Frequency value to set expressed in Hz.

The function above is used to set the frequency. With channel index -1, each enabled Analog Out channel
frequency will be configured to use the same, new option.


FDwfAnalogOutFrequencyGet
(HDWF hdwf,

int

idxChannel,

double

*phzFrequency)

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

hzFrequency – Pointer to variable to receive frequency value in Hz.

The function above is used to get the currently set frequency for the specified channel on the instrument.


FDwfAnalogOutAmplitudeInfo
(
HDWF hdwf,

int

idxChannel,

double

*pvMin,

double

*pvMax)

Parameters:

-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

pvMin – Minimum amplitude level or modulation index.

-

pvMax – Maximal amplitude level or modulation index.

The function above is used to retrieve the amplitude range for the specified channel on the instrument. The
amplitude is expressed in Volts units for carrier and in percentage units (modulation index) for AM/FM.