
B-1
Appendix B. Example Programs
The following example can be used directly with CR800 series, CR1000,
CR3000, and CR5000 dataloggers.
CRBasic Example B-1. CR1000 Program Measuring the EE181
'Program measures EE181 with single-ended inputs once every 5 seconds
'and stores the average temperature and a sample of the relative
'humidity every 60 minutes.
'Wiring Diagram
'==============
'EE181
'Wire CR1000
'Color: Function - Terminal
'------ -------- --------
'Red: Power - SW12
'Yellow: Temperature signal - SE1
'Blue: Relative Humidity signal - SE2
'Black: Power Ground - Ground Symbol
'Clear: Shield - Ground Symbol
Public
AirTC :
Units
AirTC = °C
Public
RH :
Units
RH = %
DataTable
(Temp_RH,True,-1)
DataInterval
(0,60,Min,0)
Average
(1,AirTC,FP2,0)
Sample
(1,RH,FP2)
EndTable
BeginProg
Scan
(5,Sec,1,0)
PortSet
(9,1)
'Turn on switched 12V
Delay
(0,2,Sec)
'2-second delay
'EE181 Temperature & Relative Humidity Sensor measurements AirTC and RH:
VoltSe
(AirTC,1,mV2500,1,0,0,_60Hz,0.1,-40)
VoltSe
(RH,1,mV2500,2,0,0,_60Hz,0.1,0)
PortSet
(9,0)
'Turn off switched 12V
CallTable
(Temp_RH)
NextScan
EndProg
Содержание EE181
Страница 2: ......
Страница 6: ......
Страница 24: ......
Страница 30: ...Appendix C Absolute Humidity C 4...
Страница 31: ......