Digilent WaveForms User Manual
Page 44
![background image](/manuals/672895/44/background.png)
WaveForms™ SDK Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 44 of 85
FDwfAnalogOutNodePhaseGet(HDWF hdwf,
int
idxChannel, AnalogOutNode node,
double
*pdegreePhase)
Parameters:
-
hdwf – Open interface handle on a device.
-
idxChannel – Channel index.
-
node – Node 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-node on the instrument.
FDwfAnalogOutNodeDataInfo(HDWF hdwf,
int
idxChannel, AnalogOutNode node,
int
*pnSamplesMin,
double
*pnSamplesMax)
Parameters:
-
hdwf – Open interface handle on a device.
-
idxChannel – Channel index.
-
node – Node 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.
FDwfAnalogOutNodeDataSet(
HDWF hdwf,
int
idxChannel, AnalogOutNode node,
double
*rgdData,
int
cdData)
Parameters:
-
hdwf – Open interface handle on a device.
-
idxChannel – Channel index.
-
node – Node 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.