beautypg.com

Campbell Scientific BlackGlobe Temperature Sensor for Heat Stress User Manual

Page 23

background image

Appendix B. Edlog Programming Examples

;Dewpoint calculation.

15: Z=X*F (P37)
1: 10

X Loc [ VP_kPa ]

2: 1.63725 F
3: 20

Z Loc [ scratch1 ]


16: Z=LN(X) (P40)
1: 20

X Loc [ scratch1 ]

2: 20

Z Loc [ scratch1 ]


17: Z=X*F (P37)
1: 20

X Loc [ scratch1 ]

2: 241.88 F
3: 21

Z Loc [ scratch2 ]


18: Z=F x 10^n (P30)
1: 17.558 F
2: 0

n,

Exponent

of

10

3: 22

Z Loc [ scratch3 ]


19: Z=X-Y (P35)
1: 22

X Loc [ scratch3 ]

2: 20

Y Loc [ scratch1 ]

3: 22

Z Loc [ scratch3 ]


20: Z=X/Y (P38)
1: 21

X Loc [ scratch2 ]

2: 22

Y Loc [ scratch3 ]

3: 7

Z Loc [ DewPnt_C ]


21: If (X<=>Y) (P88)
1: 7

X Loc [ DewPnt_C ]

2: 3

>=

3: 4

Y Loc [ AirTempC ]

4: 30

Then

Do


22: Z=X (P31)

1: 4

X Loc [ AirTempC ]

2: 7

Z Loc [ DewPnt_C ]


23: End (P95)

;Mean site pressure at elevation of 1357.58 meters.

24: Z=F x 10^n (P30)
1: 86.0437 F
2: 00

n,

Exponent

of

10

3: 17

Z Loc [ SP_kPa ]


;Wet-bulb calculation

25: Z=X (P31)
1: 4

X Loc [ AirTempC ]

2: 14

Z Loc [ UpperTmp ]

B-3