National Instruments 321645c-01 用户手册

下载
页码 554
Chapter 2
Function Reference — WFM_Group_Setup
©
 National Instruments Corporation
2-423
NI-DAQ FRM for PC Compatibles
WFM_Group_Setup
Format
status = WFM_Group_Setup (deviceNumber, numChans, chanVect, group)
Purpose
Assigns one or more analog output channels to a waveform generation group. A call to 
WFM_Group_Setup
 is only required for the AT-AO-6/10. By default, both analog output 
channels for the MIO devices and the Lab-PC+ are in group 1.
Parameters
Input   
Parameter Discussion
numChans indicates the number of analog output channels specified in the array chanVect
A 0 clears the channel assignments for group.
Range:
0 through 2 for most devices.
0 through 6 for AT-AO-6.
0 through 10 for AT-AO-10.
1 for DAQArb 5411 devices.
chanVect is your array of channel numbers indicating which analog output channels are in a 
group.
Channel number range:
0 or 1 for most devices.
0 through 5 for AT-AO-6.
0 through 9 for AT-AO-10.
0 for DAQArb 5411 devices.
group is the group number.
Range:
1 for most devices.
1 or 2 for AT-AO-6/10.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
numChans
i16
number of analog output channels
chanVect
[i16]
channel numbers
group
i16
group number