Digilent WaveForms User Manual Page 44

  • Download
  • Add to my manuals
  • Print
  • Page
    / 85
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 43
WaveForms™ SDK Reference Manual
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.
Page view 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 84 85

Comments to this Manuals

No comments