2 edlog programming, Edlog programming – Campbell Scientific CS450/CS455 Pressure Transducer User Manual
Page 24

CS450/CS455 Pressure Transducer
Sample Program for CR1000 Datalogger
‘CR1000 Series Datalogger
‘Declare the variable for the water level measurement
Public CS450(2)
‘Rename the variable names
Alias CS450(1)=Level
Alias CS450(2)=Temp_C
‘Define a data table for 60 minute maximum and minimums
DataTable(Hourly,True,-1)
DataInterval(0,60,Min,10)
Maximum(1,Level,FP2,0,0)
Minimum(1,Level,FP2,0,0)
Maximum(1,Temp_C,FP2,0,0)
Minimum(1,Temp_C,FP2,0,0)
EndTable
‘Read sensor every 60 seconds
BeginProg
Scan(60,sec,1,0)
‘Code
for
SDI-12
measurements:
SDI12Recorder(CS450,1,”0”,”M!”,1,0)
‘Call
the
data
table:
CallTable(Hourly)
NextScan
EndProg
6.2.2 Edlog Programming
The CR500, CR510, CR10(X), and CR23X dataloggers are programmed with
Edlog.
These dataloggers use Instruction 105 to read the CS450/CS455. Your
datalogger manual has a detailed explanation of Instruction 105.
Please note that Edlog only allocates one input location for Instruction 105.
Two input locations are required—one for the pressure measurement and one
for the temperature measurement. The additional input location needs to be
inserted manually using the Input Location Editor. To get into the Input
Location Editor, select Edit/Input Labels or press the F5 key. Once in the Input
Location Editor, do the following steps:
1. Choose Edit/Insert Block.
2. After the Insert Block dialog box appears, type in a base name for the
input locations. Each input location will have the base name with an
underscore and a consecutive number.
18