![Campbell 03002 Product Manual Download Page 12](http://html1.mh-extra.com/html/campbell/03002/03002_product-manual_3752597012.webp)
7.2 Programming
Short Cut
is the best source for up-to-date data logger programming code. If your data
acquisition requirements are simple and you are connecting the sensor to a pulse terminal, you
can probably create and maintain a data logger program exclusively by using
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
(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
Short Cut code into CRBasic Editor
(p. 17). Programming basics for CRBasic data loggers are
provided in the following sections. A complete program is provided in
Programming basics and programming examples for Edlog data loggers are provided at
www.campbellsci.com\old-manuals
.
7.2.1 Wind speed
Wind speed is measured by using the
PulseCount()
instruction. Syntax of the the
PulseCount()
instruction is:
PulseCount
(Dest, Reps, PChan, PConfig, POption, Mult, Offset)
Set the
PConfig
parameter to Low Level AC and the
POption
parameter to Frequency.
The expression for wind speed (U) is:
U = Mx + B
where
M = multiplier
x = number of pulses per second (Hertz)
B = offset
(p. 10) lists the multipliers to obtain miles/hour or meters/second when the
measurement instruction is configured to output Hz.
Wind Sentry Series
9