National Instruments 320682C Musical Toy Instrument User Manual


 
Easy I/O for DAQ Library Chapter 10
LabWindows/CVI Standard Libraries 10-42 © National Instruments Corporation
Parameters
Input
device
short integer Assigned by configuration utility.
channelString
string The analog channel string.
channelSubString
string
A sub-string of the channelString.
channelType
short integer
Specifies whether the channelString is
ANALOG_INPUT or ANALOG_OUTPUT.
Output
channelIndices
long integer
array
Returns the indices of the channels in the
channelSubString.
Return Value
error
short integer Refer to error codes in Table 10-5.
Parameter Discussion
channelString is the analog 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.
channelSubString is a sub-string of the channelString. For example, if the channelString is
"0:3,5"
the sub-string could be
"2" or
"1,3"
GetChannelNameFromIndex
short error = GetChannelNameFromIndex (short device, char channelString[],
long index, short channelType,
char channelName[]);
Purpose
Determines the name of the particular channel in the channelString indicated by index.