National Instruments 320682C Musical Toy Instrument User Manual


 
Easy I/O for DAQ Library Chapter 10
LabWindows/CVI Standard Libraries 10-14 © National Instruments Corporation
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.
fillMode specifies whether the waveforms array is grouped by channels or grouped by scans.
Consider the following examples:
If you scan channels A through C and Number of Scans is 5, then the possible fill modes are:
GROUP_BY_CHANNEL
A1 A2 A3 A4 A5 B1 B2 B3 B4 B5 C1 C2 C3 C4 C5
\----------/ \----------/ \----------/
or
GROUP_BY_SCAN
A1 B1 C1 A2 B2 C2 A3 B3 C3 A4 B4 C4 A5 B5 C5
\----/ \----/ \----/ \----/ \----/
If you are to pass the array to a graph, you should acquire the data grouped by channel.
If you are to pass the array to a strip chart, you should acquire the data grouped by scan.
You can also acquire the data grouped by scan and later reorder it to be grouped by channel
using the
GroupByChannel
function.
waveforms is an array containing the voltages acquired on the channels specified in the
channelString. The acquired voltages is 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 number of channels using the function
GetNumChannels
.