![Campbell SnowVUE 10 Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/campbell/snowvue-10/snowvue-10_product-manual_3925216014.webp)
7.2 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
(p. 1). 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
Programming basics for CRBasic data loggers are provided in the following section.
7.2.1 CRBasic programming
The
SDI12Recorder()
instruction sends a request to the sensor to make a measurement and
then retrieves the measurement from the sensor. See
(p. 16) for more
information.
For most data loggers, the
SDI12Recorder()
instruction has the following syntax:
SDI12Recorder
(Destination, SDIPort, SDIAddress, “SDICommand”, Multiplier, Offset,
FillNAN, WaitonTimeout)
Valid values for the
SDIAddress
are 0 through 9, a through z, and A through Z; alphabetical
characters need to be enclosed in quotation marks (for example,
“A”
). Also enclose the
SDICommand
in quotation marks as shown. The
Destination
parameter must be an array.
The required number of values in the array depends on the command; see
FillNAN
and
WaitonTimeout
are optional parameters (refer to
CRBasic Editor
help for more
information).
The CRBasic program also needs to measure a temperature sensor. This measurement is used to
compensate for the speed-of-sound variations in air temperature; refer to
(p. 16) for more information.
SnowVUE 10 Sonic Ranging Sensor
9