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.

A Short Cut tutorial is available in QuickStart. 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. This section provides programming basics for CRBasic data loggers. A complete program example can be found in Example program.

Campbell Scientific data loggers measure TE525 rain gages by counting switch closures and converting the total to rainfall. The PulseCount() CRBasic instruction employs dedicated pulse count accumulators, which continuously monitor the input signal, even when the data logger is between program scans. To create a pulse, an internal 100 kΩ pull-up resistor pulls the pulse input to 5 VDC when the switch is open, and a switch closure to ground pulls the input to 0 VDC.

 
PulseCount(Dest,Reps,PChan,PConfig,POption,Mult,Offset)

  • Choose Switch Closure for the PConfig parameter. For the CR6 and CR1000X, choose Switch Closure with pull up.

  • The Multiplier parameter determines the units in which rainfall is reported (Multipliers for rain measurement).

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