B-1
Appendix B. Example Programs
B.1 VoltDiff CR1000 Example
Programming for the CR800, CR850, CR3000, and CR5000 is similar to this
CR1000 program. TABLE
shows the wiring for the example.
TABLE B-1. Wiring for CR1000 Example
CR1000 Connection
Sensor Wire
1H
White
1L
Black
Ground
Clear
CRBasic Example B-1. VoltDiff CR1000 Example
'CR1000
'Declare Variables and Units
Public
Batt_Volt
Public
DOmV
Public
DOppm
Units
Batt_Volt=Volts
Units
DOmV=mV
Units
DOppm=ppm
'Define Data Tables
DataTable
(Table1,True,-1)
DataInterval
(0,60,Min,10)
Sample
(1,DOmV,FP2)
Sample
(1,DOppm,FP2)
Sample
(1,Batt_Volt,FP2)
EndTable
DataTable
(Table2,True,-1)
DataInterval
(0,1440,Min,10)
Minimum
(1,Batt_Volt,FP2,False,False)
EndTable
'Main Program
BeginProg
Scan
(5,Sec,1,0)
'Default Datalogger Battery Voltage measurement Batt_Volt:
Battery
(Batt_Volt)
'CS511 Dissolved Oxygen Probe measurements DOmV and DOppm:
VoltDiff
(DOmV,1,mV250,1,True,0,_60Hz,1,0)
DOppm=DOmV*0.34
'Call Data Tables and Store Data
CallTable
(Table1)
CallTable
(Table2)
NextScan
EndProg
Summary of Contents for CS511
Page 2: ......
Page 6: ......
Page 28: ...Appendix A Importing Short Cut Code Into CRBasic Editor A 2...
Page 31: ...C 1 Appendix C Dissolved Oxygen Tables C 1 Dissolved Oxygen in Fresh Water...
Page 32: ...Appendix C Dissolved Oxygen Tables C 2 C 2 Dissolved Oxygen in Salt Water...
Page 38: ...Appendix E PT4 L Agitator E 4...
Page 39: ......