Measuring Temp 120 And Volt 108 At Different Speeds - Campbell TEMP 120 Product Manual

20-channel thermocouple module
Table of Contents

Advertisement

B.3 Measuring TEMP 120 and VOLT 108 at
different speeds
The following program measures a full-bridge sensor on a VOLT 108 at 100 Hz in the main
sequence, and 20 type-T thermocouples on a TEMP 120 module in a 5-second slow sequence.
'GRANITE 6 Datalogger
'This program uses a VOLT 108 module to measure a full-bridge sensor
'at 100 Hz in the main sequence, and a TEMP 120 module to measure 20
'type-T thermocouples in a 5-second slow sequence.
'Declare Variables and Units
Public
strain_raw :
Public TC(20)     : Units
'Define Data Tables
DataTable(OneSec, TRUE, -1)
DataInterval(0, 1, SEC, 10)
Maximum(1, strain_raw, FP2, FALSE, TRUE)
EndTable
DataTable(Hourly, TRUE, -1)
DataInterval(0, 60, MIN, 10)
Average(20, TC(), FP2, FALSE)
EndTable
'Main Program
BeginProg
'MainSequence
Scan(10, MSEC, 20, 0)
'Measure full-bridge sensor on VOLT 108 at CPI address 1
CDM_BrFull(VOLT108, 1, strain_raw, 1, mV200, 1, X1, 1, 5000, _
 TRUE, TRUE, 1000, 1000, 1.0, 0.0)
'Call 1-second data table to process and store data
CallTable(OneSec)
NextScan
EndSequence
SlowSequence
Scan(5, SEC, 1, 0)
'Measure 20 Type-T thermocouples on TEMP 120 with CPI address 2
CDM_TCComp(TEMP120, 2, TC(), 20, 1, TYPET, 1, 0)
'Call hourly data table to process and store data
CallTable(Hourly)
NextScan
EndSequence
EndProg
CRBasic Example 4: Measuring TEMP 120 and VOLT 108
Units
strain_raw = mVpV
TC         = DegC
TEMP 120
30

Advertisement

Table of Contents
loading

Table of Contents