| Data Acquisition Toolbox | ![]() |
Add hardware channels when using a multiplexer board
Syntax
Arguments
obj |
An analog input object associated with a National Instruments board. |
chanids |
The hardware channel IDs. |
chans |
The channels that are added to obj. |
Description
adds as many channels to addmuxchannel(obj)
obj as is physically possible based on the number of National Instruments AMUX-64T multiplexer (mux) boards specified by the NumMuxBoards property. For one mux board, 64 channels are added. For two mux boards, 128 channels are added. For four mux boards, 256 channels are added.
adds the channels specified by addmuxchannel(obj,chanids)
chanids to obj. chanids refers to the hardware channel IDs of the data acquisition board.
The actual number of channels added to obj depends on the number of mux boards used. For example, suppose you are using a data acquisition board with 16 channels connected to one mux board. If chanid is 0, then addmuxchannel adds four channels. Refer to the AMUX-64T User Manual for more information about adding mux channels based on hardware channel IDs and the number of mux boards used.
returns the channels added to chans = addmuxchannel(...)
chans.
Remarks
Before using addmuxchannel, you must set the NumMuxBoards property to the appropriate value. You can use as many as four mux boards with one analog input object. addmuxchannel deletes all channels contained by obj before new channels are added.
Functions
| addline | analoginput | ![]() |