2 configuration, Configuration – Digilent WaveForms User Manual

Page 37

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


FDwfAnalogOutNodePlayData
(
HDWF hdwf,

int

idxChannel, AnalogOutNode node,

double

*rgdData,

int

cdData)

Parameters:
-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

node – Node index.

-

rgdData – Pointer to samples array to be sent to the device.

-

cdData – Number of samples to send.

The function above is used to sending new data samples for play mode. Before starting the Analog Out
instrument, prefill the device buffer with the first set of samples using the AnalogOutNodeDataSet function. In the
loop of sending the following samples, first call AnalogOutStatus to read the information from the device, then
AnalogOutPlayStatus to find out how many new samples can be sent, then send the samples with
AnalogOutPlayData.

6.2 Configuration


FDwfAnalogOutCount
(HDWF hdwf,

int

*pcChannel)

Parameters:
-

hdwf – Open interface handle on a device.

-

pcChannel – Pointer to variable to receive the number of channels in the instrument.

The function above returns the number of Analog Out channels by the device specified by hdwf.


FDwfAnalogOutNodeInfo(HDWF hdwf,

int

idxChannel,

int

*pfsnode)

Parameters:

-

hdwf – Open interface handle on a device.

-

idxChannel – Channel index.

-

pfsnode – Variable to receive the supported nodes.

The function above returns the supported AnalogOut nodes of the AnalogOut channel. They are returned (by
reference) as a bit field. This bit field can be parsed using the IsBitSet Macro. Individual bits are defined using the
AnalogOutNode constants in dwf.h. These node types are:

AnalogOutNodeCarrier

AnalogOutNodeFM

AnalogOutNodeAM


Advertising