National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 10 Easy I/O for DAQ Library
© National Instruments Corporation 10-41 LabWindows/CVI Standard Libraries
initialHighLimitVolts specifies the maximum voltage that is measured for all channels in the
channel string listed before a command string that specifies a new high limit. For the following
channel string:
"0,1; cmd hi 10.0 low -10.0; 2,3"
If initialHighLimitVolts is 5.0, channels
"0"
and
"1"
have a high limit of 5.0 and channels
"2"
and
"3"
have a high limit of 10.0.
initialLowLimitVolts is the minimum voltage that is measured for all channels in the channel
string listed before a command string that specifies a new low limit. For the following channel
string:
"0,1; cmd hi 10.0 low -10.0; 2,3"
If the initialLowLimitVolts is -5.0, channels
"0"
and
"1"
have a low limit of -5.0 and channels
"2"
and
"3"
have a low limit of -10.0.
GetChannelIndices
short
error = GetChannelIndices (
short
device,
char
channelString
[]
,
char
channelSubString
[]
,
short
channelType,
long
channelIndices
[]
);
Purpose
Determines the indices of the channels in the channelSubString. For example, if the
channelString is
"1:6"
and the channelSubString is
"1,3,6"
the channelIndices array would be filled as follows:
channelIndices[0] = 0;
channelIndices[1] = 2;
channelIndices[2] = 5;
This function is useful if you want to verify that a particular channel is part of the
channelString.