Campbell Scientific PC400 Datalogger Support Software User Manual
Page 145

Section 8. Datalogger Program Creation with Edlog
Below are examples of valid expressions:
Zee =
Vee+Ex
es =
tee^(-2)
Root =
SQRT(ABS(data))
avg =
(data1+data2+data3+data4+data5)/5
length = SQRT((adj^2)+(opp^2))
TempF = (TempC*1.8)+32
The following section of an Edlog program uses an expression to convert
temperature from Celsius to Fahrenheit:
Execution Interval = 10 sec
;this instruction reads the temperature probe
;the output is in degrees C
1: Temperature (107) (P11)
1: 1
REPS
2: 2
Channel
3: 1
Excitation
Channel
4: 2
Loc
[TempC]
5: 1
Mult
6: 0
Offset
;the following expression converts TempC to
;a temperature in degrees Fahrenheit
TempF = (TempC*1.8)+32
When this program is compiled, the DLD file contains the following
instructions. The last 5 instructions calculate the expression.
1: Temperature, 107 (P11)
1: 1
2: 2
3: 1
4: 2
5: 1.0
6: 0.0
2: Z=X (P31)
1: 2
2: 5
3: Z=F (P30)
1: 1.8
2: 0
3: 3
4: Z=X*Y (P36)
1: 3
2: 5
3: 5
8-9