![Campbell SDMS40 Product Manual Download Page 16](http://html1.mh-extra.com/html/campbell/sdms40/sdms40_product-manual_3916973016.webp)
For the CR6 and CR1000X, triggering conflicts may occur when a companion terminal is used for
a triggering instruction such as
TimerInput()
,
PulseCount()
, or
WaitDigTrig()
. For
example, if the SDMS40 is connected to C3 on a CR1000X, C4 cannot be used in the
TimerInput()
,
PulseCount()
, or
WaitDigTrig()
instructions.
Table 7-3: RS-232 sensor wire color, function and data logger connections
Wire color
Function
Power supply
terminal
Data logger connection
terminal
Red
Power
12V
Black
Power ground
G
Brown
Signal ground
⏚
(analog ground)
Blue
RS-232 Rx
C (odd numbered)
Yellow
RS-232 Tx
C (even numbered)
8. Programming
Short Cut is the best source for up-to-date data logger programming code. 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. 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. 22). Programming basics for CRBasic data loggers are
provided in the following section. Complete program examples for select CRBasic data loggers
can be found in
8.1 SDI-12 programming
The
SDI12Recorder()
instruction is used to measure an SDMS40 configured for SDI-12
measurements. This instruction sends a request to the sensor to make a measurement and then
retrieves the measurement from the sensor. See
(p. 12) for more
SDMS40 Multipoint Scanning Snowfall Sensor
10