National Instruments 320682C Musical Toy Instrument User Manual


 
Easy I/O for DAQ Library Chapter 10
LabWindows/CVI Standard Libraries 10-18 © National Instruments Corporation
Parameter Discussion
singleChannel is the analog input channel that is to be sampled. See the Channel String for
Analog Input Functions subsection of the Easy I/O for DAQ Library Function Overview section
in this chapter for the syntax of this string.
AISampleChannels
short error = AISampleChannels (short device, char channelString[],
double highLimitVolts, double lowLimitVolts,
double voltageArray[]);
Purpose
This function performs a single scan on a set of analog input channels.
Parameters
Input
device
short
integer
Assigned by configuration utility.
channelString
string Analog input channels that are to be sampled.
highLimitVolts
double Maximum voltage to be measured.
lowLimitVolts
double Minimum voltage to be measured.
Output
voltageArray
double
array
Array containing the voltages acquired on the
channels specified in the channelString.
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.
voltageArray 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 in the
channelString. This array must be declared as large as the number of channels specified in the
channelString. You can use the function GetNumChannels to determine the number of
channels.