Measuring Thermocouples - Campbell GRANITE VOLT Series Product Manual

Measurement modules
Table of Contents

Advertisement

C.2 Measuring thermocouples
The following program measures 20 thermocouples on a TEMP 120. This example uses
CDM_TCComp()
to measure both the reference thermistor and thermocouples.
'GRANITE 9 Datalogger
'This program sets CPI Address and Device Name on a TEMP 120 with serial
'number 1234 and uses the TEMP 120 to measure 20 Type-T thermocouples.
'Declare Variables and Units
Public
TC(20) :
'Define Data Tables
DataTable
(Hourly, TRUE, -1)
DataInterval
(0, 60, MIN, 10)
Average
(20, TC(), FP2, FALSE)
EndTable
'Main Program
BeginProg
'Set CPI Address
CPIAddModule
(TEMP120, 1234,
Scan
(5, SEC, 3, 0)
'Measure 20 Type-T thermocouples on TEMP 120 with CPI address 4
CDM_TCComp
(TEMP120, CPI_BUSA + 4, TC(), 20, 1,TypeT, 1, 0)
'Call Data Tables and Store Data
CallTable
(Hourly)
NextScan
EndProg
CRBasic Example 5: Measuring thermocouples
Units
TC = DegC
"A"
, CPI_BUSA + 4)
VOLT 100 series
46

Advertisement

Table of Contents
loading

This manual is also suitable for:

Granite volt 108Granite volt 116

Table of Contents