beautypg.com

3 example programs – Campbell Scientific NR-LITE-L Kipp and Zonen Net Radiometer User Manual

Page 14

background image

NR-LITE Net Radiometer

5.3 Example Programs

5.3.1 CR3000 Example Program without Wind Speed Correction

Shown below is an example program written for the CR3000 datalogger. The
datalogger measures the output from the sensor every 5 seconds and outputs
the average net radiation every hour. The calibration factor used will only
apply for one specific sensor. A new value will need to be calculated for every
different sensor based on the certificate of calibration for that sensor (see
Section 5.2).

Wiring for Example 1


Color


Function

Example CR3000 Program
Channels Used

White Radiation

Signal

1H

Green Signal

Reference

1L

Jumpered to

Clear Shield

'CR3000

'Declare Variables and Units
Public BattV
Public NR_Wm2

Units BattV=Volts
Units NR_Wm2=W/meter^2

'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,60,Min,10)
Average(1,NR_Wm2,FP2,False)
EndTable

DataTable(Table2,True,-1)
DataInterval(0,1440,Min,10)
Minimum(1,BattV,FP2,False,False)
EndTable

'Main Program
BeginProg
Scan(5,Sec,1,0)

'Default Datalogger Battery Voltage measurement BattV

Battery(BattV)

'NR-LITE Net Radiometer (no wind speed correction) measurement NR_Wm2

VoltDiff(NR_Wm2,1,mV50,1,True,0,_60Hz,100,0)

'Call Data Tables and Store Data

CallTable(Table1)
CallTable(Table2)
NextScan
EndProg

10