B.2 edlog program – Campbell Scientific CS470/CS471 Compact Bubbler System User Manual
Page 33

Appendix B. Example Programs
B.2 Edlog Program
Below is a portion of a CR10X program that measures the CS470/CS471.
The instructions below do not store data in final storage.
Instruction 92, Instruction 77 and processing instructions such as
Instruction 70 are required to store the data permanently.
;{CR10X}
;
*Table 1 Program
01: 60
Execution Interval (seconds)
1: SDI-12 Recorder (P105)
1: 0
SDI-12 Address
2: 0
Start Measurement (aM0!)
3: 1
Port ;this is where the SDI-12 signal wire is connected
4: 1
Loc[Level_m
]
5: 1.0
Mult
6: 0.0
Offset
*Table 2 Program
02: 0.000
Execution Interval (seconds)
*Table 3 Subroutines
End Program
After this command is executed, the input location with the datalogger called
“Level-m” holds the measured value for Level, reported in meters. The result
may be further processed with the datalogger or stored to final storage
memory. Note that Port 1 specifies that the SDI-12 data line is to be connected
to the Port C1. Using the Inloc editor, allocate seven locations to allow for the
entire string of variables that will be provided by the CS470/CS471.
NOTE
B-3