Section 8. Datalogger Program Creation with Edlog
TABLE 8.1-1. Operators and Functions
Operators
* multiply
/ divide
+ add
- subtract
^
raise to the power of; enclose negative values in parentheses
@ modulo
divide
E
scientific notation; 6e-1=0.6
Functions
COS
cosine; angle in degrees
SIN
sine; angle in degrees
TAN
tangent; angle in degrees
COTAN
cotangent; angle in degrees
ARCTAN
arctangent; angle in degrees
ARCSIN
arcsine; angle in degrees
ARCCOS
arccosine; angle in degrees
ARCCOT
arccotangent; angle in degrees
SQRT square
root
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
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
8-9
Summary of Contents for PC400
Page 2: ......
Page 16: ...Section 1 Introduction 1 6...
Page 18: ...Section 2 System Requirements 2 2...
Page 46: ...Section 4 The PC400 Main Screen 4 24...
Page 49: ...Section 5 Split 5 3...
Page 82: ...Section 5 Split 5 36...
Page 114: ...Section 6 View 6 14...
Page 132: ...Section 7 Short Cut Program Generator 7 18...
Page 188: ...Section 9 Datalogger Program Creation with CRBasic Editor 9 30...
Page 230: ...Appendix B Table Based Dataloggers B 12...
Page 249: ......