User guide
Table Of Contents
- Revision and Copyright Information
- Limited Warranty
- Assistance
- Precautions
- Table of Contents
- 1. Introduction
- 2. Cautionary Statements
- 3. Initial Inspection
- 4. Quickstart
- 5. Overview
- 6. Specifications
- 7. Installation
- 8. Calibration/ORP Check
- 9. Maintenance
- 10. Troubleshooting
- Appendix A. Importing Short Cut Code
- Appendix B. Example Programs
- Appendix C. Detailed Calibration Procedure and Manufacturer Tips
- Campbell Scientific Companies

Appendix B. Example Programs
B.1 CRBasic Program
The following CR1000 program measures a CSIM11 and 107 temperature
probe and has the datalogger process the raw data after each measurement
sequence.
'CR1000 Series Datalogger
'declare variables
Public pH, pHMult, TempC
'Define Data Tables
DataTable (pH,1,-1)
DataInterval (0,1,Min,10)
Sample (1,pH,FP2)
Sample (1,TempC,FP2)
EndTable
'Main Program
BeginProg
Scan (60,Sec,0,0)
'measure water temperature
Therm107 (TempC,1,3,Vx1,0,250,1.0,0)
'calculate the Multiplier for Temperature Correction
pHMult = -1/ (((TempC + 273) / 298) * 59)
'measure pH (note this is without the multplier and offset)
VoltDiff (pH,1,mV2500,1,True ,0,_60Hz,1.0,0)
pH=pH*pHMult 'now apply Correction Multiplier to measured pH
pH=pH + 7 '... and the offset -- initially with a value of 7, adjusting as
'necessary during probe calibration
CallTable pH 'output data once per minute
NextScan
EndProg
B-1