Skip to Main Content Skip to Search
Product Documentation

addmuxchannel - Add hardware channels to analog input objects when using National Instruments multiplexer board

Syntax

addmuxchannel(obj)
addmuxchannel(obj,chanids)
chans = addmuxchannel(...)

Arguments

obj

An analog input object associated with a National Instruments Traditional NI-DAQ board.

chanids

The hardware channel IDs.

chans

The channels that are added to obj.

Description

addmuxchannel(obj) adds as many channels to 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.

addmuxchannel(obj,chanids) adds the channels specified by 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.

chans = addmuxchannel(...) returns the channels added to chans.

Tips

This function is not available for National Instruments NI-DAQmx boards.

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.

See Also

muxchanidx

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS