Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-21 LabWindows/CVI Standard Libraries
AOGenerateWaveforms
short error = AOGenerateWaveforms (short device, char channelString[],
double updatesPerSecond,
int updatesPerChannel, int iterations,
double waveforms[],
unsigned long *taskID);
Purpose
This function generates a timed waveform of voltage data on the analog output channels
specified in the channelString.
Parameters
Input device short integer Assigned by configuration utility.
channelString string The analog output channels to which the
voltages are applied.
updatesPerSecond double The number of updates that are performed per
second. Any particular channel is updated at
this rate.
updatesPerChannel integer The number of D/A conversions that compose
a waveform for a particular channel.
iterations integer The number of waveform iterations that are
performed before the operation is complete; 0
= continuous.
Output waveforms double array The voltages to be applied to the channels
specified in the channelString.
taskID unsigned
long integer Returns an identifier for the waveform
generation. If you pass 0 as the iterations
parameter you need to pass the taskID to
AOClearWaveforms to clear the waveform
generation.
Return Value
error short integer Refer to error codes in Table 10-5.
Parameter Discussion
channelString is the analog output channels to which the voltages are applied. Refer to the
Channel String for Analog Output Functions subsection of the Easy I/O for DAQ Library
Function Overview section of this chapter for the syntax of this string.