B-1
Appendix B. Example Program
In this example, 25 type T thermocouples are connected to the AM25T. One
AM25T()
instruction will measure the AM25T PRT and the thermocouples.
This program is written for the CR6 datalogger. Other CRBasic data loggers
are programmed similarly. TABLE
shows the wiring used with the
example.
TABLE B-1. Wiring for CR6 Example
Function
AM25T
Data Logger
+12 Vdc Power
12V
12V
Power Ground
G
G
Analog Ground
1
⏚
⏚
Clock
CLK
U1
Reset
RES
U2
PRT Excitation
VX
U3
Common High
HI
U5
Common Low
LO
U6
1
Analog Ground is the
⏚
terminal located between the
VX
and
HI
terminals on the
AM25T.
CRBasic Example B-1. CR6 Program Using One Instruction to Measure Both the Reference
Temperature and Thermocouples
'CR6 Series
'Declare Variables and Units
Public
BattV
Public
PTemp_C
Public
RTempC
Public
Temp_C(25)
Units
BattV=Volts
Units
PTemp_C=Deg C
Units
RTempC=Deg C
Units
Temp_C=Deg C
'Define Data Tables
DataTable
(Dat15sec,True,-1)
DataInterval
(0,15,Sec,10)
Sample
(1,RTempC,FP2)
Sample
(25,Temp_C(1),FP2)
EndTable
DataTable
(Dat5Min,True,-1)
DataInterval
(0,5,Min,10)
Minimum
(1,BattV,FP2,False,False)
Average
(1,RTempC,FP2,False)
Average
(25,Temp_C(1),FP2,False)
EndTable