beautypg.com

Campbell Scientific SP-LITE Solar Radiation Sensor User Manual

Page 16

background image

SP-LITE Silicon Pyranometer

12

5.5 Program Example 3, Average and Total Solar Radiation

Wiring for Example 3

Color

Function

Example CR1000

Program Channels

Used

White

Radiation Signal

1H

Green

Signal Reference

1L

Jumpered to

Clear

Shield

EXAMPLE 3. Sample Instructions to Measure an Hourly Average Flux
and a Daily Total Flux with a CR1000

'CR1000

'Declare Variables

Public Slr_kW
Public Slr_MJ

'Declare Hourly Data Table

DataTable(Table1,True,-1)

DataInterval(0,60,Min,0)
Average(1,Slr_kW,IEEE4,0)

EndTable

'Declare Daily Data Table

DataTable(Table2,True,-1)

DataInterval(0,1440,Min,0)
Totalize(1,Slr_MJ,IEEE4,0)

EndTable

'Program

BeginProg

Scan(10,Sec,1,0)

'SP-LITE Pyranometer measurements Slr_MJ and Slr_kW:
VoltDiff(Slr_kW,1,mV25,1,True,0,_60Hz,1,0)

If Slr_kW<0 Then Slr_kW=0
Slr_MJ=Slr_kW*0.001
Slr_kW=Slr_kW*0.1

CallTable(Table1)
CallTable(Table2)

NextScan
EndProg