![Campbell SDMS40 Скачать руководство пользователя страница 17](http://html1.mh-extra.com/html/campbell/sdms40/sdms40_product-manual_3916973017.webp)
information.
(p. 24) provides a complete CRBasic program that measures the
sensor.
For most data loggers, the
SDI12Recorder()
instruction has the following syntax:
SDI12Recorder
(Destination, SDIPort, SDIAddress, “SDICommand”, Multiplier,
Offset, FillNAN, WaitonTimeout)
For the
SDIAddress
, alphabetical characters need to be enclosed in quotes (for example, “A”).
Also enclose the
SDICommand
in quotes as shown. The
Destination
parameter must be an
array. The required number of values in the array depends on the command (see
12)).
FillNAN
and
WaitonTimeout
are optional parameters (refer to CRBasic Help for more
information).
8.2 RS-232 programming
The RS-232 instruction sequence is shown in the following table. Example programs are provided
in
Table 8-1: RS-232 instruction sequence
Instruction
Function
SerialOpen()
Set up a data logger terminal for serial communications.
SerialFlush()
Clears the buffer.
Scan()
Establish a scan rate.
SerialOut()
Send RS-232 command to the sensor
SerialIn()
Set up the COM terminal to receive the incoming serial data. Please
note that in the beginning of the CRBasic program, the variable used
in the
SerialIn()
instruction needs to be declared as an ASCII
string format.
SplitStr()
Split out digital count value from the input string.
SDMS40 Multipoint Scanning Snowfall Sensor
11