beautypg.com

1 example for cr1000, 2 example for cr10x – Campbell Scientific CS500-L Temperature and Relative Humidity Probe User Manual

Page 11

background image

CS500 Temperature and Relative Humidity Probe

7

TABLE 4. Wiring for CR1000 and CR10X Examples

Description

Color

CR1000

CR10(X)

Temperature

Black

SE 1

SE 3 (2H)

Relative Humidity

Brown

SE 2

SE 4 (2L)

Signal & Power Reference

Green

G

G

Power

Red

12 V

12 V

Shield

Clear

G

5.1 Example for CR1000

'CR1000
'Created by SCWIN (2.1)

Public AirTC
Public RH

DataTable(Table1,True,-1)

DataInterval(0,60,Min,0)
Average(1,AirTC,IEEE4,0)
Sample(1,RH,IEEE4)

EndTable

BeginProg

Scan(5,Sec,1,0)

'CS500 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 CS500 temperature.
;
01: Volt (SE) (P1)

1:

1

Reps

2:

5

2500 mV Slow Range

;CR500 (2500 mV); CR23X (1000 mV); 21X,
CR7 (5000 mV)

3:

3

SE Channel

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

4:

1

Loc [ T_C ]

5:

.1

Mult

;See Table 2 for alternate multipliers

6:

-40

Offset

;See Table 2 for alternate offsets