beautypg.com

2 example for cr10x – Campbell Scientific HMP50 Temperature and Relative Humidity Sensor User Manual

Page 12

background image

HMP50 Temperature and Relative Humidity Probe

BeginProg
Scan(5,Sec,1,0)

'HMP50 Temperature & Relative Humidity Sensor measurements AirTC and RH:

VoltSE(AirTC,1,mV2500,1,0,0,_60Hz,0.1,-40.0)
VoltSE(RH,1,mV2500,2,0,0,_60Hz,0.1,0)

If (RH>100) And (RH<108) Then RH=100

CallTable(Table1)
NextScan
EndProg

5.2 Example for CR10X

;Measure the HMP50 temperature.
;
01: Volt (SE) (P1)
1: 1

Reps

2: 5

2500

mV

Slow

Range

;CR510 (2500 mV); CR23X (1000 mV); 21X,

CR7

(5000

mV)

3: 3

SE

Channel

;Black wire (SE 3), Blue wire (G)

4: 1

Loc [ T_C ]

5: .1

Mult

;See Table 3 for alternate multipliers

6: -40

Offset

;See Table 3 for alternate offsets


;Measure the HMP50 relative humidity.
;
02: Volt (SE) (P1)
1: 1

Reps

2: 5

2500 mV Slow Range

;CR510 (2500 mV); CR23X (1000 mV); 21X,

CR7

(5000

mV)

3: 4

SE

Channel

;White wire (SE 4), Blue wire (G)

4: 3

Loc [ RH_pct ]

5: .1

Mult

;See Table 4 for alternate multipliers

6: 0

Offset


;Limit the maximum relative humidity to 100%.
;
03: If (X<=>F) (P89)
1: 3

X Loc [ RH_pct ]

2: 3

>=

3: 100

F

4: 30

Then

Do


04: Z=F (P30)
1: 100

F

2: 0

Exponent

of

10

3: 3

Z Loc [ RH_pct ]


05: End (P95)

8