Finishing the program, 6 connecting the cwb100 to the datalogger – Campbell Scientific Wireless Sensor Network (CWB100, CWS220, and CWS900) User Manual

Page 35

Advertising
background image

Wireless Sensor Network

Finishing the Program

Add a one minute data table and CallTable instruction to complete the program

Public WSN(12)

DataTable (WSNData,True,-1)
DataInterval (0,1,Min,0)
Sample (12,WSN(),FP2)
EndTable

BeginProg
Scan (60,Sec,0,0)
CWB100(1, WSN(),"CPU:CWSConfig.txt")
CallTable WSNData
NextScan
EndProg

Save the program and send it to the datalogger.

If the CRBasic editor does not compile the program and indicates
the error message “Undeclared variable CWB100” this indicates
that the compiler is too old and does not support the wireless
sensor CRBasic instructions. It is still possible to send the
program and run it in the datalogger as long as the datalogger has
operating system version 21 or higher.

NOTE

3.6 Connecting the CWB100 to the Datalogger

The DATA/A terminal on the CWB100 radio connects to the odd numbered
control port specified in the CWB100() instruction. In this example, DATA/A
connects to C1.

1. Power down the datalogger.

2. Connect CWB100 G terminal to G terminal on the datalogger.

Connect to power ground (G), not analog ground (

).

CAUTION

3. Connect CWB100 +12V terminal to 12V terminal on the datalogger.

4. Connect CWB100 DATA/A terminal to C1 on the datalogger.

5. Apply power to the datalogger.

The LED activity indicator on the CWB100 will flash red and green rapidly as
it goes through the power-up sequence. Then the red LED will flash every 5
seconds.

3.7 Powering CWS Sensors and Initiating Auto-discovery

Connect the 109-L-CWS sensor to the CWS900 female connector at the
bottom of the CWS900. Press the connector firmly into the sockets and rotate
the locking nut to hold it in position.

27

Advertising