Controlling An Am16/32B Multiplexer - Campbell GRANITE VOLT Series Product Manual

Measurement modules
Table of Contents

Advertisement

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
COM ODD H
COM ODD L
High channels 1H-24H
Low channels 1L – 24L
CPI A
'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,
'Main Scan
12V
G
RES
SW5-2
CLK
SW5-1
COM (⏚)
CRBasic Example 8: Controlling an AM16/32B multiplexer
"A"
,CPI_BusA + 1)
Sensor
12V
G
1H
1L
Ground
Signal high
CPI
Signal low
VOLT 100 series
49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Granite volt 108Granite volt 116

Table of Contents