-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWSIC.CR1
48 lines (42 loc) · 1.42 KB
/
WSIC.CR1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
' Weather Station, Ingrid Canopy
' Angelo Reserve, UC Berkeley
'CR1000
'
'date: 15 October 2008
'program author: Paul Wooldridge, UC Berkeley
' program modified: Collin Bode, UC Berkeley, November 11, 2008
'
' program modified: Collin Bode, UC Berkeley, February 9, 2011
' Moved weather station and logger out of Treebeard and into Ingrid.
' Renamed station from wstb to wsic "Weather Station Ingrid Canopy"
'
' program modified: Collin Bode, UC Berkeley, October 22, 2012
' Vaisala weather station were removed a few months ago.
' Modified code to perform minimal recording.
' Main function is PakBus relay.
'
'Declare Public Variables and Units
Public PTemp, batt_volt 'datalogger panel T & battery volt
Public Temp_C 'from misc sensors
'Declare Other Variables
'Declare Constants
'Define Data Tables
DataTable(WSIC_Table,True,-1) 'True=always trigger on interval, -1=size
DataInterval (0,5,Min,10) 'time offset, interval, units, #lapses to remember
Average(1,batt_volt,FP2,False)
Average(1,PTemp,FP2,False) '# to calc, variable, datatype, exclude current?
EndTable
'Define Subroutines
'Sub
'EnterSub instructions here
'EndSub
'Main Program
BeginProg
Scan (1,Min,1,0) 'interval, units, buffers, 0=infinite loop
'Default datalogger general stuff
PanelTemp (PTemp,250) 'datalogger panel T, 250 ms intergration
Battery (batt_volt) 'datalogger battery volts
'Call Output Tables
CallTable WSIC_Table
NextScan
EndProg