MuxSelect (Multiplexer Channel Select)

The MuxSelect instruction is used to select a specified channel on an AM16/32A or AM16/32B multiplexer.

Syntax

MuxSelect ( ClkPort, ResetPort, ClockPW, MuxChan, Mode )

Remarks

This instruction "wakes up" the multiplexer and clocks it to the specified starting channel. It can be used in conjunction with the SubScan and PulsePort instructions to step through the multiplexer's measurement channels to make measurements.

When measurements are completed, the ResetPort should be set low using PortSet to turn off the multiplexer (see example).

Parameters

ClkPort (Clock Port)

The port used to clock the multiplexer (for example, advance its channel). One clock port may be used to clock several devices. An alphanumeric code is entered for this argument.

Code Description
C1 Control Port 1
C2 Control Port 2
C3 Control Port 3
C4 Control Port 4
U1 Universal Terminal 1
U2 Universal Terminal 2
U3 Universal Terminal 3
U4 Universal Terminal 4
U5

Universal Terminal 5

U6 Universal Terminal 6
U7 Universal Terminal 7
U8 Universal Terminal 8
U9 Universal Terminal 9
U10 Universal Terminal 10
U11 Universal Terminal 11
U12 Universal Terminal 12

Type: Constant

ResPort (Reset Port)

The control port that will be used to wake up and reset the multiplexer. If multiple multiplexers are used in the program, each multiplexer must have its own unique ResetPort. An alphanumeric code is entered for this argument. Right-click to display a list.

Code Description
C1 Control Port 1
C2 Control Port 2
C3 Control Port 3
C4 Control Port 4
U1 Universal Terminal 1
U2 Universal Terminal 2
U3 Universal Terminal 3
U4 Universal Terminal 4
U5

Universal Terminal 5

U6 Universal Terminal 6
U7 Universal Terminal 7
U8 Universal Terminal 8
U9 Universal Terminal 9
U10 Universal Terminal 10
U11 Universal Terminal 11
U12 Universal Terminal 12

Type: Constant

ClockPW (Clock Period)

Used to control the period of the clock used to advance the multiplexer. The value is entered in milliseconds.

Type: Constant

MuxChan (Multiplexer Channel)

Specifies the first measurement channel on the multiplexer. It can be a constant or a variable. If programmed as a variable, the datalogger program will be forced into SequentialMode at compile time.

Type: Constant or variable

Mode

Specifies what type of clocking will be used. Enter 0 for AM16/32A clocking and 1 for AM16/32B clocking.

Type: Constant