Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-19 LabWindows/CVI Standard Libraries
AIStartAcquisitionshort error = AIStartAcquisition (short device, char channelString[],
int bufferSize, double scansPerSecond,
double highLimitVolts, double lowLimitVolts,
double *actualScanRate,
unsigned long *taskID);
Purpose
This function starts a continuous asynchronous acquisition on the analog input channels specified
in the channelString. Data is acquired into an internal circular buffer. Use
AIReadAcquisition to retrieve scans from the internal buffer.
Parameters
Input device short integer Assigned by configuration utility.
channelString string Analog input channels that are to be sampled.
bufferSize integer The size of the internal circular buffer in scans.
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.
Output actualScanRate double The actual scan rate may differ slightly from the
scan rate you specified, given the limitations of
your particular DAQ device.
taskID unsigned
long integer An identifier for the asynchronous acquisition.
Return Value
error short integer Refer to error codes in Table 10-5.
Parameter Discussion
channelString is the analog input channels that are to be sampled. Refer to the Channel String
for Analog Input Functions subsection of the Easy I/O for DAQ Library Function Overview
section of this chapter for the syntax of this string.
taskID is an identifier for the asynchronous acquisition that must be passed to
AICheckAcquisition
AIReadAcquisition
AIClearAcquisition