![Campbell CR3000 Micrologger Operator'S Manual Download Page 188](http://html1.mh-extra.com/html/campbell/cr3000-micrologger/cr3000-micrologger_operators-manual_489090188.webp)
Section 7. Installation
188
Scan
(1,Sec,1,0)
'Measurements
'Battery Voltage
Battery
(Batt_Volt)
'Wiring Panel Temperature
PanelTemp
(PTemp_C,250)
'Type T Thermocouple measurements:
TCDiff
(AirTemp_C,1,mV20C,1,TypeT,PTemp_C,True,0,_60Hz,1,0)
TCDiff
(AirTemp_F,1,mV20C,1,TypeT,PTemp_C,True,0,_60Hz,1.8,32)
'Convert from degree C to degree F
AirTemp2_F = AirTemp_C * 1.8 + 32
'Count the number of times through the program. This demonstrates the use of a
'Long integer variable in counters.
Counter = C 1
'Calculate the difference between air and panel temps
DeltaT_C = AirTemp_C - PTemp_C
'Control the flag based on the difference in temperature. If DeltaT >= 3 then
'set Flag 1 high, otherwise set it low
If
DeltaT_C >= 3
Then
Flag(1) = high
Else
Flag(1) = low
EndIf
'Turn LED connected to Port 1 on when Flag 1 is high
If
Flag(1) = high
Then
PortSet
(1,1)
'alternate syntax: PortSet(1,high)
Else
PortSet
(1,0)
'alternate syntax: PortSet(1,low)
EndIf
'Count how many times the DataEvent “DeltaT_C>=3” has occurred. The
'TableName.EventCount syntax is used to return the number of data storage events
'that have occurred for an event driven table. This example looks in the data
'table “Event”, which is declared above, and reports the event count. The (1,1)
'after EventCount just needs to be included.
HowMany = Event.EventCount(1,1)
'Call Data Tables
CallTable
(OneMin)
CallTable
(Event)
NextScan
EndProg
7.7.1.5 PulseCountReset Instruction
PulseCountReset is used in rare instances to force the reset or zeroing of CR3000
pulse accumulators. See Measurements — Overview
(p. 67).
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......