Example data logger programs
The first two examples demonstrate how to write programs in CRBasic that send and receive data using the SDM‑SIO2R. These programs are not extensive and are not fundamentally different than those written for reading data from a standard data logger serial port.
The program code is the same for all data loggers that support the SDM‑SIO2R.
The program you’ll need depends on the specific serial device being used, as there are countless variations in reading different sensors. If you’re having difficulty writing the code, please contact Campbell Scientific. We may already have experience with the sensor and may be able to offer advice on how to work with it.
A third example shows how to control the switched relay power using the SDMSIO2R()
instruction.