Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 278

Advertising
background image

Section 7. Creating and Editing Datalogger Programs

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

5: Z=F (P30)

1: 32

2: 0

3: 3

6: Z=X+Y (P33)

1: 3

2: 5

3: 6

7-60

Advertising