Digilent WaveForms User Manual
Page 85
WaveForms™ SDK Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 85 of 85
FDwfAnalogOutPhaseSet(
HDWF hdwf,
int
idxChannel,
double
degreePhase)
Parameters:
-
hdwf – Open interface handle on a device.
-
idxChannel – Channel index.
-
degreePhase – Value of Phase in degrees.
The function above is used to set the phase for the specified channel on the instrument. With channel index -1,
each enabled Analog Out channel phase will be configured to use the same, new option.
FDwfAnalogOutPhaseGet(HDWF hdwf,
int
idxChannel,
double
*pdegreePhase)
Parameters:
-
hdwf – Open interface handle on a device.
-
idxChannel – Channel index.
-
pdegreePhase – Pointer to variable to receive Phase value (in degrees).
The function above is used to get the current phase for the specified channel on the instrument.
FDwfAnalogOutDataInfo(
HDWF hdwf,
int
idxChannel,
int
*pnSamplesMin,
double
*pnSamplesMax)
Parameters:
-
hdwf – Open interface handle on a device.
-
idxChannel – Channel index.
-
pnSamplesMin - Minimum number of samples available for custom data.
-
pnSamplesMax – Maximum number of samples available for custom data.
The function above is used to retrieve the minimum and maximum number of samples allowed for custom data
generation.
FDwfAnalogOutDataSet(HDWF hdwf,
int
idxChannel,
double
*rgdData,
int
cdData)
Parameters:
-
hdwf – Open interface handle on a device.
-
idxChannel – Channel index.
-
rgbData – Buffer of samples to set.
-
cData – Number of samples to set in rgbData.
The function above is used to set the custom data or to prefill the buffer with play samples. The samples are
double precision floating point values (rgdData) normalized to ±1.
With the custom function option, the data samples (cdData) will be interpolated to the device buffer size. The
output value will be Offset + Sample*Amplitude, for instance:
-
0 value sample will output: Offset.
-
+1 value sample will output: Offset + Amplitude.
-
-1 value sample will output: Offset – Amplitude.