beautypg.com

B.2.2 – Campbell Scientific CSIM11 pH and ORP Sensors User Manual

Page 29

background image

Appendix B. Example Programs

*Table 2 Program
02: 0.0000 Execution Interval (seconds)

*Table 3 Subroutines

End Program

B.2.2 CR10(X) Example using Instructions Instead of Edlog’s

Expression Editor

;Measure Water Temperature

1: Temp (107) (P11)
1: 1

Reps

2: 1

SE Channel

3: 1

Excite all reps w/E1

4: 1

Loc [ TempC ]

5: 1.0

Mult

6: 0.0

Offset


;Calculate the Multiplier for Temperature Correction
;Note: See Section 4.2 for a program using Edlog's Expression Editor

2: Z=F (P30)
1: 298

F

2: 0

Exponent of 10

3: 4

Z Loc [ K_25C ]


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

X Loc [ TempC ]

2: 273

F

3: 3

Z Loc [ pHMult ]


4: Z=X/Y (P38)
1: 3

X Loc [ pHMult ]

2: 4

Y Loc [ K_25C ]

3: 3

Z Loc [ pHMult ]


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

X Loc [ pHMult ]

2: 59

F

3: 3

Z Loc [ pHMult ]


6: Z=1/X (P42)
1: 3

X Loc [ pHMult ]

2: 3

Z Loc [ pHMult ]


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

X Loc [ pHMult ]

2: -1.0

F

3: 3

Z Loc [ pHMult ]

;Measure Ph

8: Volt (Diff) (P2)
1: 1

Reps

2: 5

2500 mV Slow Range

3: 1

DIFF Channel

4: 2

Loc [ pH ]

5: 1.0

Mult

6: 0.0

Offset


;Apply the Temperature Correction Multiplier to the Measured pH

B-3