beautypg.com

5 programming with crbasic – Campbell Scientific 020C Wind Direction Sensor User Manual

Page 16

background image

Model 020C Wind Direction Sensor

TABLE 7-1. 020C Wiring





Wire Color




Wire
Description

CR23X
CR800-series
CR1000
CR3000
CR5000



CR10(X)
CR500
CR510

White Power

12V

12V 12V

Green Ground G G

Blue Signal SE input

SE input

Red

*

(Optional)

Heater +

Supply 12V

Supply 12V

Black

*

(Optional)

Heater -

Supply ground

Supply ground

Clear Shield

G

*Bearing heat only. Use of heater will prolong the life of the bearings, but
using it is practical only when the datalogger primary power is AC mains
power or very high capacity solar power. Make this connection directly to the
power supply rather than on the datalogger wiring panel.

7.5 Programming with CRBasic

If Short Cut is not used to program the datalogger (see Section 4, Quickstart)
the following example code can be used as a guide when programming with
CRBasic Editor to measure the 020C. CRBasic Editor is included with
Campbell Scientific software LoggerNet, PC400, and RTDAQ.

'CR1000

'Declare Variables and Units
Public BattV

Public PTemp_C
Public WindDir


Units BattV=Volts
Units PTemp_C=Deg C

Units WindDir=degrees

'Define Data Tables

DataTable(Table1,True,-1)
DataInterval(0,10,Min,10)
Sample(1,WindDir,FP2)

EndTable

DataTable(Table2,True,-1)

DataInterval(0,1440,Min,10)
Minimum(1,BattV,FP2,False,False)

EndTable

10