;{CR510} ; ;Program: ECI_VER.CSI, Version 1.1, April 27, 2006 ;Virginia Technologies, Inc. ;Written By: Bob Ross ; ;Sample code for Campbell Scientific CR510 datalogger ;using SDI-12 Port 1 (C1) to control one ECI-1 instrument. ; ;This code starts verification mode measurements and records results from a single ECI-1 with ;SDI-12 address set to 0. Measurement results will be recorded ;once every 60 seconds. ; ;Please note that verification mode measurements can be used to validate correct operation ;of the entire ECI-1 instrument excluding its electrodes. In verification mode, internal load ;resistors are used to emulate the instruments resistivity and LPR electrodes. ; ;The data returned from this program can be collected into a .DAT type file using ;Campbell Scientific PC based programs such as PC208W ;or Loggernet. The format of the the data stored in the .DAT ;file is as follows: ; ;ARRAY ID #, YEAR, DAY OF YEAR, 24 HOUR TIME, CHLORIDE VOLTAGE(V), RESISTIVITY(KOhm-CM), LPR(KOhm-CM^2), TEMP(C), OCP(V) ; ;The results returned for the RESISTIVITY and LPR parameters should be used to validate correct operation of the ECI-1. ;Results in the following ranges sould be considered to be correct: ; ;RESISTIVITY: 06.334 - 07.7418 KOhm-cm ;LPR: 0038.8 - 0047.7 KOhm-cm^2 *Table 1 Program 01: 60 Execution Interval (seconds) ;verification measurement 1: SDI-12 Recorder (P105) 1: 0 SDI-12 Address 2: 10 Start Verification (aV!) 3: 1 Port 4: 1 Loc [ CHLORIDE ] 5: 1.0 Mult 6: 0.0 Offset ;store data 2: Do (P86) 1: 1 Call Subroutine 1 *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines ;Store Verification Data 1: Beginning of Subroutine (P85) 1: 1 Subroutine 1 2: Do (P86) 1: 10 Set Output Flag High (Flag 0) 3: Set Active Storage Area (P80)^27928 1: 1 Final Storage Area 1 2: 1 Array ID 4: Real Time (P77) 1: 1110 Year,Day,Hour/Minute (midnight = 0000) 5: Resolution (P78) 1: 1 High Resolution ;writes verification data to final storage 6: Sample (P70)^8540 1: 5 Reps 2: 1 Loc [ CHLORIDE ] 7: End (P95) End Program -Input Locations- 1 CHLORIDE 1 1 3 2 GSTAT 1 1 0 3 PSTAT 1 1 0 4 TEMP 1 1 0 5 OCP 1 1 0 6 _________ 1 0 0 7 _________ 1 0 0 8 _________ 1 0 0 9 _________ 1 0 0 10 _________ 0 0 0 11 _________ 0 0 0 12 _________ 0 0 0 13 _________ 0 0 0 14 _________ 0 0 0 15 _________ 0 0 0 16 _________ 0 0 0 17 _________ 0 0 0 18 _________ 0 0 0 19 _________ 0 0 0 20 _________ 0 0 0 21 _________ 0 0 0 22 _________ 0 0 0 23 _________ 0 0 0 24 _________ 0 0 0 25 _________ 0 0 0 26 _________ 0 0 0 27 _________ 0 0 0 28 _________ 0 0 0 -Program Security- 0000 0000 0000 -Mode 4- -Final Storage Area 2- 0 -CR10X ID- 0 -CR10X Power Up- 3