Easy I/O for DAQ Library Chapter 10
LabWindows/CVI Standard Libraries 10-44 © National Instruments Corporation
GetNumChannels
short error = GetNumChannels (short device, char channelString[],
short channelType,
unsigned long *numberOfChannels);
Purpose
Determines the number of channels contained in the channelString.
You need to know the number of channels in the channelString so that you can interpret (for
analog input) or build (for analog output) waveform arrays correctly.
Parameters
Input device short
integer Assigned by configuration utility.
channelString string The analog channel string.
channelType short
integer Specifies whether the channelString is
ANALOG_INPUT or ANALOG_OUTPUT.
Output numberOfChannels unsigned
long integer Returns the number of channels contained in
the channelString.
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 or Channel String for Analog Output Functions subsection of the Easy
I/O for DAQ Library Function Overview section of this chapter for the syntax of this string.
GroupByChannel
short error = GroupByChannel (float array[], long numberOfScans,
unsigned long numberOfChannels);
Purpose
This function can be used to reorder an array of data from "grouped by scan" mode into "grouped
by channel" mode.