Icon of
      SensorMUX block

SensorMUX Block

This block interfaces with SensorMUX from mindsensors.com

Display Settings

Block
  1. The number shows the NXT Port. Connect your SensorMUX to this port. If you are connecting to a different port, change this number in the configuration panel to appropriate port number.
  2. This label indicates current Channel selected by this block.

Configuring the SensorMUX Block

Panel
  1. The NXT’s port to connect this SensorMUX to.
  2. Select the Channel to read from.

SensorMUX Block's Data Hub Plugs

Hub
  1. Plug to supply the channel number (However, it is recommended to use the Panel to change the channel).

TIPS for using SensorMUX

SensorMUX establishes a direct channel of communication between NXT and your sensor.
To establish that channel, this block needs to send commands to SensorMUX.
Also, after selecting channel NXT needs to configure the sensor based on it's type (such as Light/Touch, etc).
All that takes time, so avoid changing channels frequently in loops.
Your program should change the channel, and then in a Loop Block (or a Wait Block) read the sensor, once your sensing criteria is met, move on to next sensor.
For example see the program below.

Example Program for using SensorMUX

Example