Channel ID, specified as a numeric value, character vector, or string; typically
indicates the physical location of the channel on the device. Supported values depend on
the vendor and device. To add multiple channels, specify the channel ID as a numeric
vector or a cell array of character vectors or strings.
The channel ID is not the same as the channel index. The index
is the position of the channel in the DataAcquisition interface
display. For example, if you add a channel with ID 2 as the first
channel in a DataAcquisition interface, the index for this channel is
1.
Tip: For best performance when adding multiple
channels, specify the channels as a vector in one call to addinput,
rather than calling addinput for each channel.
Example: addinput(d,"Dev1","ai2","Voltage");
Example: addinput(d,'Dev1','ai1','Voltage');
Example: addinput(d,'Dev1',{'ai1','ai2'},'Voltage');
Example: addinput(d,"Dev1",{"ai1","ai2"},"Voltage");
Example: addinput(d,"Dev1",1:2,"Voltage");
Data Types: char | string | numeric | cell