3 crbasic programming – Campbell Scientific AM16/32A Multiplexer User Manual
Page 24

AM16/32A Relay Analog Multiplexer
;DELAY
11: Excitation with Delay (P22)
1: 1
EX
Chan
2: 0
Delay w/EX (units=.01sec)
3: 1
Delay after EX (units=.01sec)
4: 0
mV
Excitation
;POT. MEASUREMENT INSTRUCTION
12: Excite,Delay,Volt(SE) (P4)
1: 2
Reps
2: 5
5000 mV slow Range
3: 1
IN
Chan
4: 2
Excite all reps w/EXchan 2
5: 1
Delay (units .01sec)
6: 5000
mV
Excitation
7: 11--
Loc [:POT #1 ]
8: 1
Mult
9: 0
Offset
;END POT. MEASUREMENT LOOP
13: End (P95)
;DISABLES MULTIPLEXER
14: Do (P86)
1: 40
Reset Low Port 1
15: End Table 1 (P95)
INPUT LOCATION LABELS:
1:STRAIN #1 13:POT #3
2:STRAIN #2 14:POT #4
3:STRAIN #3 15:POT #5
4:STRAIN #4 16:POT #6
5:STRAIN #5 17:POT #7
6:STRAIN #6 18:POT #8
7:STRAIN #7 19:POT #9
8:STRAIN #8 20:POT #10
9:STRAIN #9 21:POT #11
10:STRAIN#1022:POT #12
11:POT #1
23:_________
12:POT #2
24:_________
5.3 CRBasic Programming
The CR5000, CR800, CR850, CR3000, and CR1000 are programmed
with CRBasic; for details see the datalogger manual. While the
instructions look different than those used to program the older
CR10X, CR23X, etc., they perform similar functions. One difference
that needs to be pointed out is that with CRBasic measurement results
are stored in a variable array, not numbered input locations. In the
older loggers the destination location is “indexed” so that each pass
through the measurement loop the result is stored in a higher
numbered location. In CRBasic the program must specifically
increment an index variable and use that variable to determine where
each measurement is stored.
18