
7.2 Data logger programming
Short Cut is the best source for up-to-date programming code for Campbell Scientific data
loggers. If your data acquisition requirements are simple, you can probably create and maintain a
data logger program exclusively with Short Cut. If your data acquisition needs are more complex,
the files that Short Cut creates are a great source for programming code to start a new program
or add to an existing custom program.
NOTE:
Short Cut cannot edit programs after they are imported and edited in CRBasic Editor.
AShort Cut tutorial is available in QuickStart (p. 2). If you wish to import Short Cut code into
CRBasic Editor to create or add to a customized program, follow the procedure in Importing
Short Cut code into CRBasic Editor (p. 15). This section provides programming basics for CRBasic
data loggers. A complete program example can be found in Example program (p. 16).
The PulseCount() instruction programs CRBasic data loggers to measure the TE525 rain
gage.
PulseCount(Dest,Reps,PChan,PConfig,POption,Mult,Offset)
lChoose Switch Closure for the PConfig parameter. For the CR6 and CR1000X, choose
Switch Closure with pull up.
lThe Multiplier parameter determines the units in which rainfall is reported (Table 7-2
(p. 8)).
Table 7-2: Multipliers for rain measurement
Rain gage Inches Millimeters
TE525 0.01 0.254
TE525WS 0.01 0.254
TE525MM 0.00394 0.1
TE525 or TE525MM
w/8 in funnel 0.0057 0.1459
7.3 Siting
Mount the rain gage in a relatively level spot representative of the surrounding area. Ensure that
the lip of the funnel is horizontal, at least 30cm above the ground, and higher than the average
snow depth.
TE525-Series Tipping Bucket Rain Gage 8