beautypg.com

1 example crbasic programs – Campbell Scientific CS431 Submersible Pressure Transducer User Manual

Page 10

background image

CS431 Submersible Pressure Transducer

This function is designed for the thermistor used in the CS431. It
automatically selects the excitation voltage and processes the result using the
Steinhart-Hart calculation to get an output in degrees centigrade.

5.1.1 Example CRBasic Programs

The following two examples are for the CR1000 but other CRBasic
dataloggers are programmed similarly. Table 5-1 shows the wiring used for
these examples.

TABLE 5-1. CR1000 Connections for Example Programs

Single Ended
Channel Number

Differential
Channel Number


Sensor 1


Sensor2

1

1H

1 1H Vr+ (Blue)

2 1L

Vr-

(Red)

AG (Green)

3 2H

Vo+

(Yellow)

4 2L

Vo-

(Purple)

Temperature AG (Black)

5 3H

Temperature

Out

(Brown)

6 3L

Temperature

Out

(Brown)

7 4H

Vr+

(Blue)

8 4L

Vr-

(Red)

AG

(Green)

Ex1

Excite (White)

Excite (White)

9 5H

Vo+

(Yellow)

10 5L

Vo-

(Purple)

Temperature

AG

(Black)

Ex2

Temperature Excite (Orange) Temperature Excite (Orange)

Ground Lug

Shield

Shield

5.1.1.1 Example CR1000 P

ROGRAM

– S

TANDARD

C

ALIBRATION – Two Sensors

'Program = Sample Program for two CS431s
'Sensor 1 is 5 psig, Sensor 2 is 15 psig

'Declare Variables and Units
Public Mult(2)

'calibration multiplier, one per sensor

Public Offset(2)

'calibration offset, one per sensor

'multipliers and offsets provided on INW calibration sheet


Public

V(4)

'reference voltage, then output voltage for each sensor

'For example: V(1)=Vr for 1st sensor, V(2)=Vo for 1st sensor

'V(3)=Vr for 2nd sensor, V)4)=Vo for 2nd sensor

(cont.)

6