beautypg.com

Datalogger programming, 1 cr1000 programming – Campbell Scientific CS205 10-Hour Fuel Temperature Stick User Manual

Page 7

background image

Model CS205 10-hour Fuel Temperature Stick

5. Datalogger Programming

This section is for users who write their own datalogger programs. A
datalogger program to measure this sensor can be created using Campbell
Scientific’s Short Cut Program Builder software. You do not need to read this
section to use Short Cut.

The Temp107 measurement instruction (P11), is used with dataloggers that are
programmed with Edlog (e.g. CR10X, CR23X) to measure the 107 probe. P11
makes half bridge voltage measurement, and converts the measurement result
to temperature using a fifth order polynomial. With a multiplier of 1 and an
offset of 0, the output is temperature in degrees C. With a multiplier of 1.8 and
an offset of 32, the output is temperature in degrees F.

The Therm107 measurement instruction is used with dataloggers that are
programmed with CRBasic (e.g. CR1000) to measure the 107 probe.
Therm107 makes a half bridge voltage measurement, and converts the
measurement result to temperature using the Steinhart-Hart equation. With a
multiplier of 1 and an offset of 0, the output is temperature in degrees C. With
a multiplier of 1.8 and an offset of 32, the output is temperature in degrees F.

5.1 CR1000 Programming

'CR1000
'This example program measures a single 107 Thermistor probe
'every 10 seconds and stores the average temperature every 60 minutes.

'Declare the variables for the temperature measurement
Public T107_C

'Define a data table for 60 minute averages:
DataTable(Table1,True,-1)
DataInterval(0,60,Min,0)
Average(1,T107_C,IEEE4,0)
EndTable

BeginProg
Scan(10,Sec,1,0)
'Measure

the

temperature

Therm107(T107_C,1,1,Vx1,0,_60Hz,1.0,0.0)
'Call

Data

Table

CallTable(Table1)
NextScan
EndProg

3