beautypg.com

B.2 example edlog program – Campbell Scientific 109SS Temperature Probe User Manual

Page 25

background image

Appendix B. Example Programs

'Call the data table

CallTable

AvgTemp

NextScan

EndProg

B.2 Example Edlog Program

This example can be used directly with CR10X dataloggers. With minor

adaptations, it can also be used with CR10, CR500, CR510, CR23X, and

CR7X dataloggers. More adaptation will be needed with the 21X and CR7

dataloggers. Contact a Campbell Scientific application engineer for help with

any datalogger program.

;{CR10X}

;Program measures one 109 temperature probe once a second
;and stores the average temperature every 60 minutes.

;Wiring Diagram
;==============
;109SS Probe
;
; Wire
; Color Function CR10X
; ----- -------- ------
; Black Voltage-excitation input E1
; Red Analog-voltage output SE1
; Purple Bridge-resistor ground AG
; Clear Shield G

*Table 1 Program
01: 1

Execution Interval (seconds)


1: AC Half Bridge (P5)
1: 1

Reps

2: 25

2500 mV 60 Hz Rejection Range

3: 1

SE Channel

4: 1

Excite all reps w/Exchan 1

5: 2500

mV Excitation

6: 1

Loc [ V_Vx ]

7: 1.0

Mult

8: 0.0

Offset


2: Z=1/X (P42)
1: 1

X Loc [ V_Vx ]

2: 2

Z Loc [ Vx_V ]


3: Z=X+F (P34)
1: 2

X Loc [ Vx_V ]

2: -1

F

3: 3

Z Loc [ Vx_V_1 ]


4: Z=X*F (P37)
1: 3

X Loc [ Vx_V_1 ]

2: 24900

F

3: 4

Z Loc [ Rtherm ]


5: Z=LN(X) (P40)
1: 4

X Loc [ Rtherm ]

2: 5

Z Loc [ lnRt ]


6: Z=X*F (P37)
1: 5

X Loc [ lnRt ]

2: .001

F

3: 6

Z Loc [ Scal_lnRt ]

B-3