National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-13 LabWindows/CVI Standard Libraries
waveforms is an array containing the voltages acquired on the channels specified in the
channelString. The acquired voltages are placed into the array in the order specified by
fillMode. This array must be declared as large as:
(number of channels) * (numberOfScans)
You can determine the number of channels using the GetNumChannels function.
AIAcquireWaveforms
short error = AIAcquireWaveforms (short device, char channelString[],
long numberOfScans, double scansPerSecond,
double highLimitVolts, double lowLimitVolts,
double *actualScanRate, short fillMode,
double waveforms[]);
Purpose
This function performs a timed acquisition of voltage data from the analog channels specified in
the channelString.
Parameters
Input
device
short
integer
Assigned by configuration utility.
channelString
string Analog input channels that are to be sampled.
numberOfScans
long
integer
Number of scans to be acquired. One scan involves
sampling every channel in the channelString once.
scansPerSecond
double Number of scans performed per second. Any
particular channel is scanned at this rate.
highLimitVolts
double Maximum voltage to be measured.
lowLimitVolts
double Minimum voltage to be measured.
fillMode
short
integer
Specifies one of the following modes for the
waveforms array: GROUP_BY_CHANNEL or
GROUP_BY_SCAN.
Output
actualScanRate
double The actual scan rate may differ slightly from the scan
rate you specified, given the limitations of your
particular DAQ device.
waveforms
double
array
Array containing the voltages acquired on the
channels specified in the channelString.