C.5 Controlling an AM16/32B multiplexer
The following program makes 32 differential measurements through an AM16/32B multiplexer
controlled by a VOLT 108 connected to a GRANITE 9 data logger. With slight modifications, this
program can be used with other Campbell Scientific data loggers.
Table C-1: Wiring for example B-3
GRANITE 9 AM16/32B (2x32 mode) VOLT 108
Sensor
12V
12V
G
G
RES
SW5-2
CLK
SW5-1
COM ODD H
1H
COM ODD L
1L
COM (
⏚
)
⏚
Ground
High channels 1H-24H
Signal high
Low channels 1L – 24L
CPI A
CPI
Signal low
CRBasic Example 8: Controlling an AM16/32B multiplexer
'GRANITE 9 Datalogger
'This program sets CPI Address and Device Name on VOLT108 with serial number
'1234, and measures 32 differential voltages through an AM16/32B multiplexer
'controlled by a VOLT108
'**Set AM16/32B to 2x32 mode**
'Declare Variables
Dim
LCount
Public
MilliVolts(32)
DataTable
(TenMin,True,-1)
DataInterval
(0,10,Min,10)
Average
(32,MilliVolts(),FP2,False)
EndTable
'Main Program
BeginProg
'Set CPI Address to 1
CPIAddModule
(VOLT108,1234,
"A"
,CP 1)
'Main Scan
VOLT 100 series
49