beautypg.com

Datalogger programming, 1 cs700 programming, 1 cs700 pulse channel example programs – Campbell Scientific CS700 Tipping Bucket Rain Gage and CS700H Heated Rain Gage User Manual

Page 16: 1 cr1000 pulse channel example

background image

CS700 and CS700H Rain Gage

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.

5.1 CS700 Programming

The CS700 is measured using the Pulse Count instruction with the switch
closure configuration code. The multiplier used in the Pulse Count instruction
determines the units in which rainfall is reported. In all dataloggers, a
multiplier of 0.01 converts the output to inches and a multiplier of 0.254
converts the output to millimeters.

5.1.1 CS700 Pulse Channel Example Programs

The following example programs use a pulse channel to read the output from
the CS700.

5.1.1.1 CR1000 Pulse Channel Example

Although this example is for the CR1000, the CR800, CR850, CR3000, and
CR5000 are programmed similarly.

'CR1000
'CR1000 Program for CS700

'Declare Variables and Units
Public Rain_mm

Units Rain_mm=mm

'Define Data Tables
DataTable(CS700_mm,True,-1)
DataInterval(0,60,Min,0)
Totalize(1,Rain_mm,IEEE4,0)
EndTable

'Main Program
BeginProg
Scan(1,Sec,1,0)

'CS700 Rain Gauge measurement Rain_mm:

PulseCount(Rain_mm,1,1,2,0,0.254,0)

'Call Data Tables and Store Data

CallTable(CS700_mm)
NextScan
EndProg

12