Instruction manual

SECTION 2. EDLOG
2-5
LN (natural logarithm)
EXP (exponent of e; EXP(2) = e
2
)
RCP (reciprocal; RCP(4) = 1/4 = 0.25)
ABS (absolute value)
FRAC (takes the fraction portion;
FRAC(2.78)=.78)
INT (takes the integer portion;
INT(2.78)=2)
2.3.3.3 Examples
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 a CR10(X) datalogger
program uses an expression to convert
Temperature from Celsius to Fahrenheit:
Execution Interval = 10 sec
1: Temperature (107) (P11)
01: 1 REPS
02: 2 Channel
03: 1 Excitation Channel
04: 2 Loc [TempC]
05: 1 Mult
06: 0 Offset
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: P11 (Temperature, 107)
1: 1
2: 2
3: 1
4: 2
5: 1.0
6: 0.0
2: P31 (Z=X)
1: 2
2: 5
3: P30 (Z=F)
1: 1.8
2: 0
3: 3
4: P36 (Z=X*Y)
1: 3
2: 5
3: 5
5: P30 (Z=F)
1: 32
2: 0
3: 3
6: P33 (Z=X+Y)
1: 3
2: 5
3: 6
2.4 EDITING EDLOG PROGRAMS
2.4.1 EDITOR KEYSTROKES
The following keystrokes can be used to edit an
EDLOG program:
<ctrl> Home View Top of File
<ctrl> End View Bottom of File
<ctrl> PgUp View Top of File
<ctrl> PgDn View Bottom of File
<ctrl> n Change to a Comment Line
<shift> <ctrl> n Un-Comment a Line
PgUp Page Up
PgDn Page Down
Enter Move to Next Field or Create
New Line
Tab Move to Next Field or Line
<shift> Tab Move to Previous Field or Line
<shift> Ins Select an Instruction from a
Dialog Box