AM16/32B Relay Multiplexer 21
Appendix B.
Example
measurements and programs
This section covers sensor-to-AM16/32B connections and AM16/32B-to-data logger connections.
The following are examples only and should not be construed as the only way to make a
particular measurement. See the measurement section of the data logger manual for more
information on basic bridge measurements. The figures in this section do not show the wire
connections between the data logger and AM16/32B control terminals. Only the path for each
sensor through the AM16/32B to the data logger is shown. Control wiring is shown in the table
giving the wiring for each example.
The programs use the
MuxSelect()
instruction to select the specified starting channel and turn
the multiplexer on (High). Programs created with
Short Cut
will use the
PortSet()
instruction to
turn the multiplexer on (High). While
PortSet()
is backward compatible with the older
AM16/32 and AM16/32A, these older versions also require a 150 ms
Delay()
instruction
immediately after the
PortSet()
instruction. Using
MuxSelect()
with the AM16/32B does not
require the delay, allowing for faster operation. In all cases,
PortSet()
is used at the end of
each scan to turn the multiplexer off (Low).
The example programs are downloadable from the Campbell Scientific website:
www.campbellsci.com/downloads/am16-32b-example-programs
. A single Zip archive contains all
the example programs referenced in this manual.
Use the
CRBasic Editor to view and edit the example programs.
B.1
Single-ended voltage measurement
shows a typical connection for single-ended voltage measurements. Using this
method, a data logger can make up to 48 single-ended voltage measurements through a
multiplexer. See
AM16-32B Example B-1 CR300 single-ended measurements.CR300
,
AM16-32B
Example B-2 CR1000X single-ended measurements.CR1X
, and
wiring diagram, or use
Short Cut to create the program. With minor adjustments, the CR1000X
program can be used with the CR6, CR3000, CR800 series, or CR1000. In either case, the
AM16/32B must be in 4x16 mode. View the program in the
CRBasic Editor.