;{CR10X} ;Program: ECHO TE-CR10X Measurement.csi ;{CR10X} ;This program is just an example of how to hook up 5TE probes to ;the CR10X datalogger. This was written to leave Control Ports 1 and 2 ;(C1 & C2) free for other control purposes. C3 is wired to the Control port ;of the Switched 12 V and there were five probes in all that were being measured. ;It is expected that you will modify this program to your individual needs. ;However, you should consider the timing and writing of this program ;to be the minimum timing possible to get good probe readings. ;Wiring: ; All white wires (5 in this example) wired to SW 12V Channel on 10X ; Individual red wires for Probe 1 to 5 in C4 to C8 ; Bare wires to ground ; Jumper wire from SW 12 V Ctrl to C3 ;Output ; Data from each sensor in its "Raw" form. To convert from "Raw" into ; actual values, do the following: ; Eb = Eb_Raw * 0.02 (raw bulk dielectric) ; EC = EC_Raw * 0.01 (raw electrical conductivity) ; Temp = (T_Raw/10) - 40 ; These conversions are done at the bottom of this program. ;Calculating volumetric water content ; Convert to VWC (volumetric water content) using Topp et al. (1980) or ; a custom calibration: ; VWC (Topp et al.) = -5.3e-2+2.92e-2*Eb-5.5e-4*Eb^2+4.3e-6*Eb^3 ; ***Note: Conversion have not been made in the program *Table 1 Program 01: 30 Execution Interval (seconds) 1: Do (P86) 1: 43 Set Port 3 High 2: Port Serial I/O (P15) 1: 1 Reps 2: 0 8-Bit, TTL ASCII, 1200 Baud 3: 0 TX after CTS 4: 40 C4 TX/RX, No RTS/DTR (OS>1.14) 5: 1 Start Loc for TX [ P1_Eb_Raw ] 6: 0 Number of Locs to TX 7: 256 Termination Character for RX 8: 50 Max Characters to RX 9: 50 Time Out for CTS (TX) and/or RX (0.01 sec units) 10: 1 Start Loc for RX [ P1_Eb_Raw ] 11: 1 Mult for RX 12: 0 Offset for RX 3: Do (P86) 1: 53 Set Port 3 Low 4: Excitation with Delay (P22) 1: 1 Ex Channel 2: 0 Delay W/Ex (0.01 sec units) 3: 500 Delay After Ex (0.01 sec units) 4: 0 mV Excitation 5: Do (P86) 1: 43 Set Port 3 High 6: Port Serial I/O (P15) 1: 1 Reps 2: 0 8-Bit, TTL ASCII, 1200 Baud 3: 0 TX after CTS 4: 50 C5 TX/RX, No RTS/DTR (OS>1.14) 5: 1 Start Loc for TX [ P1_Eb_Raw ] 6: 0 Number of Locs to TX 7: 256 Termination Character for RX 8: 50 Max Characters to RX 9: 50 Time Out for CTS (TX) and/or RX (0.01 sec units) 10: 4 Start Loc for RX [ P2_Eb_Raw ] 11: 1 Mult for RX 12: 0 Offset for RX 7: Do (P86) 1: 53 Set Port 3 Low 8: Excitation with Delay (P22) 1: 1 Ex Channel 2: 0 Delay W/Ex (0.01 sec units) 3: 500 Delay After Ex (0.01 sec units) 4: 0 mV Excitation 9: Do (P86) 1: 43 Set Port 3 High 10: Port Serial I/O (P15) 1: 1 Reps 2: 0 8-Bit, TTL ASCII, 1200 Baud 3: 0 TX after CTS 4: 60 C6 TX/RX, No RTS/DTR (OS>1.14) 5: 1 Start Loc for TX [ P1_Eb_Raw ] 6: 0 Number of Locs to TX 7: 256 Termination Character for RX 8: 50 Max Characters to RX 9: 50 Time Out for CTS (TX) and/or RX (0.01 sec units) 10: 7 Start Loc for RX [ P3_Eb_Raw ] 11: 1 Mult for RX 12: 0 Offset for RX 11: Do (P86) 1: 53 Set Port 3 Low 12: Excitation with Delay (P22) 1: 1 Ex Channel 2: 0 Delay W/Ex (0.01 sec units) 3: 500 Delay After Ex (0.01 sec units) 4: 0 mV Excitation 13: Do (P86) 1: 43 Set Port 3 High 14: Port Serial I/O (P15) 1: 1 Reps 2: 0 8-Bit, TTL ASCII, 1200 Baud 3: 0 TX after CTS 4: 70 C7 TX/RX, No RTS/DTR (OS>1.14) 5: 1 Start Loc for TX [ P1_Eb_Raw ] 6: 0 Number of Locs to TX 7: 256 Termination Character for RX 8: 50 Max Characters to RX 9: 50 Time Out for CTS (TX) and/or RX (0.01 sec units) 10: 10 Start Loc for RX [ P4_Eb_Raw ] 11: 1 Mult for RX 12: 0 Offset for RX 15: Do (P86) 1: 53 Set Port 3 Low 16: Excitation with Delay (P22) 1: 1 Ex Channel 2: 0 Delay W/Ex (0.01 sec units) 3: 500 Delay After Ex (0.01 sec units) 4: 0 mV Excitation 17: Do (P86) 1: 43 Set Port 3 High 18: Port Serial I/O (P15) 1: 1 Reps 2: 0 8-Bit, TTL ASCII, 1200 Baud 3: 0 TX after CTS 4: 80 C8 TX/RX, No RTS/DTR (OS>1.14) 5: 1 Start Loc for TX [ P1_Eb_Raw ] 6: 0 Number of Locs to TX 7: 256 Termination Character for RX 8: 50 Max Characters to RX 9: 50 Time Out for CTS (TX) and/or RX (0.01 sec units) 10: 13 Start Loc for RX [ P5_Eb_Raw ] 11: 1 Mult for RX 12: 0 Offset for RX 19: Do (P86) 1: 53 Set Port 3 Low 20: Beginning of Loop (P87) 1: 0 Delay 2: 5 Loop Count 21: Step Loop Index (P90) 1: 3 Step 22: Z=X*F (P37) 1: 1 -- X Loc [ P1_Eb_Raw ] 2: 0.02 F 3: 16 -- Z Loc [ P1_Eb ] 23: Z=X*F (P37) 1: 2 -- X Loc [ P1_EC_Raw ] 2: 0.01 F 3: 17 -- Z Loc [ P1_EC ] 24: Z=X*F (P37) 1: 3 -- X Loc [ P1_T_Raw ] 2: .1 F 3: 18 -- Z Loc [ P1_T ] 25: Z=X+F (P34) 1: 18 -- X Loc [ P1_T ] 2: -40 F 3: 18 -- Z Loc [ P1_T ] 26: End (P95) *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines End Program -Input Locations- 1 P1_Eb_Raw 5 8 2 2 P1_EC_Raw 1 1 0 3 P1_T_Raw 1 1 0 4 P2_Eb_Raw 1 0 1 5 P2_EC_Raw 1 0 0 6 P2_T_Raw 1 1 0 7 P3_Eb_Raw 1 1 1 8 P3_EC_Raw 1 1 0 9 P3_T_Raw 1 1 0 10 P4_Eb_Raw 1 0 2 11 P4_EC_Raw 0 0 0 12 P4_T_Raw 0 0 0 13 P5_Eb_Raw 1 0 1 14 P5_EC_Raw 0 0 0 15 P5_T_Raw 0 0 0 16 P1_Eb 1 0 1 17 P1_EC 1 0 1 18 P1_T 1 1 2 19 P2_Eb 1 0 0 20 P2_EC 0 0 0 21 P2_T 0 0 0 22 P3_Eb 0 0 0 23 P3_EC 0 0 0 24 P3_T 0 0 0 25 P4_Eb 0 0 0 26 P4_EC 0 0 0 27 P4_T 0 0 0 28 P5_Eb 0 0 0 29 P5_EC 0 0 0 30 P5_T 0 0 0 -Program Security- 0000 0000 0000 -Mode 4- -Final Storage Area 2- 0 -CR10X ID- 0 -CR10X Power Up- 3 -CR10X Compile Setting- 3 -CR10X RS-232 Setting- -1 -DLD File Labels- 0 -Final Storage Labels-