Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

TDR100, AM16/32B and CR1000 Problem


diegogradosb Jul 21, 2015 05:58 PM

Dear all,

I have a setup of 128 soil moisture probes connected in 3 multiplexer levels (16 level 3, 2 level 2 and 1 level 1) and 12 soil temperature sensors connected to AM16/32B. For some reason I am getting strange values: -7999, NAN and negative values for La/L relation in the TDR measurements. Also the first and second probes gave me NAN values systematically every 1 or 2 measurements (maybe delay value is the problem for this). On the other hand, I had NAN values for soil temperature for some hours, then it worked. At some moment, for some reason the CR1000 was recording data every 1min.

Finally, there is a strange behavior of the CableLength variable for the soil moisture probes. During calibration process with PCTDR, we define some values. However, after a month we recheck the waveforms noticing that some of then varied. So we had to modify (maybe 2m as maximum) the CableLength to get good waveforms . How is this possible? Should not be a fixed value?

The code is:

'Declare Public & Dim Variables
Public batt_volt
Public Panel_temp
Public LaL(128)
Public LaL2(128)
Public ToppVWC(128)
Public SoilTemp(12)
Units batt_volt = Volts
Units Panel_temp = Deg C
Units SoilTemp = Deg C

'To conserve datalogger memory, use Dim instead of Public
Dim I
Dim LCount

'Declare Constants
'Topp Equation Dielectric Constants
Const a0 = -0.053
Const a1 = 0.0292
Const a2 = -0.00055
Const a3 = 0.0000043

'Define Data Tables
DataTable (PanelSensors,1,-1) '1hour Data Table - Panel Sensors
DataInterval (0,1,Hr,3)
Minimum (1,batt_volt,IEEE4,0,False)
Average (1,Panel_temp,IEEE4,0)
EndTable

DataTable (Data_TDR,1,-1) '20min Data Table - TDR100 VWC Measurements
DataInterval (0,20,Min,3)
Sample (128,LaL(),FP2)
Sample (128,ToppVWC(),FP2)
EndTable

DataTable(SoilTemp,True,-1) '1hour Data Table - AM16/32B Soil Temperature
DataInterval(0,1,Hr,10)
Maximum(1,SoilTemp(1),FP2,False,False)
Maximum(1,SoilTemp(2),FP2,False,False)
Maximum(1,SoilTemp(3),FP2,False,False)
Maximum(1,SoilTemp(4),FP2,False,False)
Maximum(1,SoilTemp(5),FP2,False,False)
Maximum(1,SoilTemp(6),FP2,False,False)
Maximum(1,SoilTemp(7),FP2,False,False)
Maximum(1,SoilTemp(8),FP2,False,False)
Maximum(1,SoilTemp(9),FP2,False,False)
Maximum(1,SoilTemp(10),FP2,False,False)
Maximum(1,SoilTemp(11),FP2,False,False)
Maximum(1,SoilTemp(12),FP2,False,False)
Minimum(1,SoilTemp(1),FP2,False,False)
Minimum(1,SoilTemp(2),FP2,False,False)
Minimum(1,SoilTemp(3),FP2,False,False)
Minimum(1,SoilTemp(4),FP2,False,False)
Minimum(1,SoilTemp(5),FP2,False,False)
Minimum(1,SoilTemp(6),FP2,False,False)
Minimum(1,SoilTemp(7),FP2,False,False)
Minimum(1,SoilTemp(8),FP2,False,False)
Minimum(1,SoilTemp(9),FP2,False,False)
Minimum(1,SoilTemp(10),FP2,False,False)
Minimum(1,SoilTemp(11),FP2,False,False)
Minimum(1,SoilTemp(12),FP2,False,False)
Average(1,SoilTemp(1),FP2,False)'Probe 15 cm, plot T1
Average(1,SoilTemp(2),FP2,False)'Probe 30 cm, plot T1
Average(1,SoilTemp(3),FP2,False)'Probe 45 cm, Plot T1
Average(1,SoilTemp(4),FP2,False)'Probe 15 cm, plot T2
Average(1,SoilTemp(5),FP2,False)'Probe 30 cm, plot T2
Average(1,SoilTemp(6),FP2,False)'Probe 45 cm, plot T2
Average(1,SoilTemp(7),FP2,False)'Probe 15 cm, Plot T3
Average(1,SoilTemp(8),FP2,False)'Probe 30 cm, plot T3
Average(1,SoilTemp(9),FP2,False)'Probe 45 cm, plot T3
Average(1,SoilTemp(10),FP2,False)'Probe 15 cm, Plot T4
Average(1,SoilTemp(11),FP2,False)'Probe 30 cm, Plot T4
Average(1,SoilTemp(12),FP2,False)'Probe 45 cm, plot T4
EndTable

'Main Program
BeginProg

SDMSpeed(1000) 'Fix TDR100 to CR1K communication timing '100
'Main Scan
Scan(20,Min,5,0) 'Scan instructions every 20min
'Default Datalogger Battery Voltage measurement 'batt_volt'
Battery (batt_volt)
'Default Wiring Panel Temperature measurement 'Panel_temp'
PanelTemp (Panel_temp,_60Hz)
CallTable PanelSensors

'Turn AM16/32 Multiplexer On
PortSet(6,1)
Delay(0,150,mSec)
LCount = 1
SubScan(0,uSec,4)
'Switch to next AM16/32 Multiplexer channel
PulsePort(5,10000)
'107 Temperature Probe (4-wire) measurements 'SoilTemp()' on the AM16/32 Multiplexer
Therm107(SoilTemp(LCount),3,1,1,0,_60Hz,1,0)
LCount = LCount + 3
NextSubScan
'Turn AM16/32 Multiplexer Off
PortSet(6,0)
Delay(0,150,mSec)
'Call Data Tables and Store Data
CallTable SoilTemp

Delay (2,3,Sec) 'pause 3 sec to allow power supply voltage to settle ()

'Measure La/L on SDMX50 channel #1 thru channel#8 & convert to VWC using Topp Eq.
'MUX N3 (5, 8, 1-8)
TDR100 (LaL(1),0,0,5811,4,1.0,251,34.5,3,0.200,0.076,1.0,0)
TDR100 (LaL(2),0,0,5821,4,1.0,251,34.6,3,0.200,0.066,1.0,0)
TDR100 (LaL(3),0,0,5831,4,1.0,251,34.5,3,0.200,0.073,1.0,0)
TDR100 (LaL(4),0,0,5841,4,1.0,251,34.5,3,0.200,0.072,1.0,0)
TDR100 (LaL(5),0,0,5851,4,1.0,251,34.5,3,0.200,0.064,1.0,0)
TDR100 (LaL(6),0,0,5861,4,1.0,251,34.5,3,0.200,0.085,1.0,0)
TDR100 (LaL(7),0,0,5871,4,1.0,251,34.5,3,0.200,0.074,1.0,0)
TDR100 (LaL(8),0,0,5881,4,1.0,251,34.5,3,0.200,0.009,1.0,0)

'MUX N3 (5, 7, 1-8)
TDR100 (LaL(9),0,0,5711,4,1.0,251,36.5,3,0.200,0.063,1.0,0)
TDR100 (LaL(10),0,0,5721,4,1.0,251,36.5,3,0.200,0.088,1.0,0)
TDR100 (LaL(11),0,0,5731,4,1.0,251,36.5,3,0.200,0.087,1.0,0)
TDR100 (LaL(12),0,0,5741,4,1.0,251,36.5,3,0.200,0.068,1.0,0)
TDR100 (LaL(13),0,0,5751,4,1.0,251,35.0,3,0.200,0.097,1.0,0)
TDR100 (LaL(14),0,0,5761,4,1.0,251,35.0,3,0.200,0.068,1.0,0)
TDR100 (LaL(15),0,0,5771,4,1.0,251,34.9,3,0.200,0.071,1.0,0)
TDR100 (LaL(16),0,0,5781,4,1.0,251,36.1,3,0.200,0.077,1.0,0)

'MUX N3v (5, 6, 1-8)
TDR100 (LaL(17),0,0,5611,4,1.0,251,36.0,3,0.200,0.095,1.0,0)
TDR100 (LaL(18),0,0,5621,4,1.0,251,36.1,3,0.200,0.078,1.0,0)
TDR100 (LaL(19),0,0,5631,4,1.0,251,36.0,3,0.200,0.085,1.0,0)
TDR100 (LaL(20),0,0,5641,4,1.0,251,36.0,3,0.200,0.085,1.0,0)
TDR100 (LaL(21),0,0,5651,4,1.0,251,34.5,3,0.200,0.081,1.0,0)
TDR100 (LaL(22),0,0,5661,4,1.0,251,34.5,3,0.200,0.086,1.0,0)
TDR100 (LaL(23),0,0,5671,4,1.0,251,34.5,3,0.200,0.071,1.0,0)
TDR100 (LaL(24),0,0,5681,4,1.0,251,35.7,3,0.200,0.070,1.0,0)

'MUX N3 (5, 5, 1-8)
TDR100 (LaL(25),0,0,5511,4,1.0,251,36.1,3,0.200,0.070,1.0,0)
TDR100 (LaL(26),0,0,5521,4,1.0,251,36.1,3,0.200,0.068,1.0,0)
TDR100 (LaL(27),0,0,5531,4,1.0,251,36.0,3,0.200,0.070,1.0,0)
TDR100 (LaL(28),0,0,5541,4,1.0,251,36.0,3,0.200,0.050,1.0,0)
TDR100 (LaL(29),0,0,5551,4,1.0,251,34.5,3,0.200,0.089,1.0,0)
TDR100 (LaL(30),0,0,5561,4,1.0,251,34.5,3,0.200,0.084,1.0,0)
TDR100 (LaL(31),0,0,5571,4,1.0,251,36.0,3,0.200,0.079,1.0,0)
TDR100 (LaL(32),0,0,5581,4,1.0,251,35.8,3,0.200,0.076,1.0,0)

'MUX N3 (5, 4, 1-8)
TDR100 (LaL(33),0,0,5411,4,1.0,251,48.6,3,0.200,0.071,1.0,0)
TDR100 (LaL(34),0,0,5421,4,1.0,251,46.6,3,0.200,0.093,1.0,0)
TDR100 (LaL(35),0,0,5431,4,1.0,251,48.5,3,0.200,0.082,1.0,0)
TDR100 (LaL(36),0,0,5441,4,1.0,251,48.5,3,0.200,0.082,1.0,0)
TDR100 (LaL(37),0,0,5451,4,1.0,251,47.0,3,0.200,0.023,1.0,0)
TDR100 (LaL(38),0,0,5461,4,1.0,251,47.0,3,0.200,0.082,1.0,0)
TDR100 (LaL(39),0,0,5471,4,1.0,251,47.0,3,0.200,0.065,1.0,0)
TDR100 (LaL(40),0,0,5481,4,1.0,251,48.2,3,0.200,0.094,1.0,0)

'MUX N3 (5, 3, 1-8)
TDR100 (LaL(41),0,0,5311,4,1.0,251,48.3,3,0.200,0.082,1.0,0)
TDR100 (LaL(42),0,0,5321,4,1.0,251,48.3,3,0.200,0.092,1.0,0)
TDR100 (LaL(43),0,0,5331,4,1.0,251,48.3,3,0.200,0.099,1.0,0)
TDR100 (LaL(44),0,0,5341,4,1.0,251,48.3,3,0.200,0.087,1.0,0)
TDR100 (LaL(45),0,0,5351,4,1.0,251,46.8,3,0.200,0.077,1.0,0)
TDR100 (LaL(46),0,0,5361,4,1.0,251,46.7,3,0.200,0.087,1.0,0)
TDR100 (LaL(47),0,0,5371,4,1.0,251,46.7,3,0.200,0.080,1.0,0)
TDR100 (LaL(48),0,0,5381,4,1.0,251,48.0,3,0.200,0.038,1.0,0)

'MUX N3 (5, 2, 1-8)
TDR100 (LaL(49),0,0,5211,4,1.0,251,48.7,3,0.200,0.030,1.0,0)
TDR100 (LaL(50),0,0,5221,4,1.0,251,48.3,3,0.200,0.092,1.0,0)
TDR100 (LaL(51),0,0,5231,4,1.0,251,48.3,3,0.200,0.094,1.0,0)
TDR100 (LaL(52),0,0,5241,4,1.0,251,48.2,3,0.200,0.083,1.0,0)
TDR100 (LaL(53),0,0,5251,4,1.0,251,46.8,3,0.200,0.097,1.0,0)
TDR100 (LaL(54),0,0,5261,4,1.0,251,47.8,3,0.200,0.076,1.0,0)
TDR100 (LaL(55),0,0,5271,4,1.0,251,48.2,3,0.272,0.075,1.0,0)
TDR100 (LaL(56),0,0,5281,4,1.0,251,48.0,3,0.272,0.045,1.0,0)

'MUX N3 (5, 1, 1-8)
TDR100 (LaL(57),0,0,5111,4,1.0,251,46.5,3,0.200,0.093,1.0,0)
TDR100 (LaL(58),0,0,5121,4,1.0,251,48.3,3,0.200,0.078,1.0,0)
TDR100 (LaL(59),0,0,5131,4,1.0,251,48.3,3,0.200,0.084,1.0,0)
TDR100 (LaL(60),0,0,5141,4,1.0,251,48.2,3,0.200,0.084,1.0,0)
TDR100 (LaL(61),0,0,5151,4,1.0,251,47.8,3,0.200,0.024,1.0,0)
TDR100 (LaL(62),0,0,5161,4,1.0,251,46.7,3,0.200,0.090,1.0,0)
TDR100 (LaL(63),0,0,5171,4,1.0,251,46.7,3,0.200,0.077,1.0,0)
TDR100 (LaL(64),0,0,5181,4,1.0,251,48.3,3,0.200,0.047,1.0,0)

'MUX N3 (6, 8, 1-8)
TDR100 (LaL(65),0,0,6811,4,1.0,251,42.9,3,0.200,0.083,1.0,0)
TDR100 (LaL(66),0,0,6821,4,1.0,251,42.9,3,0.200,0.084,1.0,0)
TDR100 (LaL(67),0,0,6831,4,1.0,251,42.9,3,0.200,0.098,1.0,0)
TDR100 (LaL(68),0,0,6841,4,1.0,251,42.9,3,0.200,0.078,1.0,0)
TDR100 (LaL(69),0,0,6851,4,1.0,251,40.9,3,0.200,0.079,1.0,0)
TDR100 (LaL(70),0,0,6861,4,1.0,251,40.9,3,0.200,0.072,1.0,0)
TDR100 (LaL(71),0,0,6871,4,1.0,251,40.9,3,0.200,0.070,1.0,0)
TDR100 (LaL(72),0,0,6881,4,1.0,251,42.9,3,0.200,0.061,1.0,0)

'MUX N3 (6, 7, 1-8)
TDR100 (LaL(73),0,0,6711,4,1.0,251,34.5,3,0.200,0.078,1.0,0)
TDR100 (LaL(74),0,0,6721,4,1.0,251,34.5,3,0.200,0.078,1.0,0)
TDR100 (LaL(75),0,0,6731,4,1.0,251,36.0,3,0.200,0.079,1.0,0)
TDR100 (LaL(76),0,0,6741,4,1.0,251,36.0,3,0.200,0.100,1.0,0)
TDR100 (LaL(77),0,0,6751,4,1.0,251,34.5,3,0.200,0.078,1.0,0)
TDR100 (LaL(78),0,0,6761,4,1.0,251,36.6,3,0.200,0.113,1.0,0)
TDR100 (LaL(79),0,0,6771,4,1.0,251,36.8,3,0.200,0.094,1.0,0)
TDR100 (LaL(80),0,0,6781,4,1.0,251,36.6,3,0.200,0.110,1.0,0)

'MUX N3v (6, 6, 1-8)
TDR100 (LaL(81),0,0,6611,4,1.0,251,42.5,3,0.200,0.070,1.0,0)
TDR100 (LaL(82),0,0,6621,4,1.0,251,42.9,3,0.200,0.071,1.0,0)
TDR100 (LaL(83),0,0,6631,4,1.0,251,42.4,3,0.200,0.061,1.0,0)
TDR100 (LaL(84),0,0,6641,4,1.0,251,42.9,3,0.200,0.078,1.0,0)
TDR100 (LaL(85),0,0,6651,4,1.0,251,40.9,3,0.200,0.078,1.0,0)
TDR100 (LaL(86),0,0,6661,4,1.0,251,40.9,3,0.200,0.079,1.0,0)
TDR100 (LaL(87),0,0,6671,4,1.0,251,40.9,3,0.200,0.088,1.0,0)
TDR100 (LaL(88),0,0,6681,4,1.0,251,42.9,3,0.200,0.083,1.0,0)

'MUX N3 (6, 5, 1-8)
TDR100 (LaL(89),0,0,6511,4,1.0,251,42.4,3,0.200,0.089,1.0,0)
TDR100 (LaL(90),0,0,6521,4,1.0,251,42.4,3,0.200,0.080,1.0,0)
TDR100 (LaL(91),0,0,6531,4,1.0,251,42.4,3,0.200,0.098,1.0,0)
TDR100 (LaL(92),0,0,6541,4,1.0,251,42.4,3,0.200,0.070,1.0,0)
TDR100 (LaL(93),0,0,6551,4,1.0,251,40.8,3,0.200,0.086,1.0,0)
TDR100 (LaL(94),0,0,6561,4,1.0,251,40.8,3,0.200,0.047,1.0,0)
TDR100 (LaL(95),0,0,6571,4,1.0,251,40.8,3,0.200,0.093,1.0,0)
TDR100 (LaL(96),0,0,6581,4,1.0,251,42.3,3,0.200,0.053,1.0,0)

'MUX N3 (6, 4, 1-8)
TDR100 (LaL(97),0,0,6411,4,1.0,251,48.3,3,0.200,0.095,1.0,0)
TDR100 (LaL(98),0,0,6421,4,1.0,251,48.3,3,0.200,0.125,1.0,0)
TDR100 (LaL(99),0,0,6431,4,1.0,251,48.3,3,0.200,0.128,1.0,0)
TDR100 (LaL(100),0,0,6441,4,1.0,251,48.3,3,0.200,0.125,1.0,0)
TDR100 (LaL(101),0,0,6451,4,1.0,251,46.85,3,0.200,0.109,1.0,0)
TDR100 (LaL(102),0,0,6461,4,1.0,251,46.85,3,0.200,0.099,1.0,0)
TDR100 (LaL(103),0,0,6471,4,1.0,251,46.85,3,0.200,0.142,1.0,0)
TDR100 (LaL(104),0,0,6481,4,1.0,251,48.9,3,0.200,0.104,1.0,0)

'MUX N3 (6, 3, 1-8) 'being fixed
'TDR100 (LaL(105),0,0,6311,4,1.0,251,,3,0.200,,1.0,0)
'TDR100 (LaL(106),0,0,6321,4,1.0,251,,3,0.200,,1.0,0)
'TDR100 (LaL(107),0,0,6331,4,1.0,251,,3,0.200,,1.0,0)
'TDR100 (LaL(108),0,0,6341,4,1.0,251,,3,0.200,,1.0,0)
'TDR100 (LaL(109),0,0,6351,4,1.0,251,,3,0.200,,1.0,0)
'TDR100 (LaL(110),0,0,6361,4,1.0,251,,3,0.200,,1.0,0)
'TDR100 (LaL(111),0,0,6371,4,1.0,251,,3,0.200,,1.0,0)
'TDR100 (LaL(112),0,0,6381,4,1.0,251,,3,0.200,,1.0,0)

'MUX N3 (6, 2, 1-8)
TDR100 (LaL(113),0,0,6211,4,1.0,251,48.4,3,0.200,0.125,1.0,0)
TDR100 (LaL(114),0,0,6221,4,1.0,251,48.4,3,0.200,0.102,1.0,0)
TDR100 (LaL(115),0,0,6231,4,1.0,251,48.4,3,0.200,0.114,1.0,0)
TDR100 (LaL(116),0,0,6241,4,1.0,251,48.4,3,0.200,0.097,1.0,0)
TDR100 (LaL(117),0,0,6251,4,1.0,251,46.9,3,0.200,0.110,1.0,0)
TDR100 (LaL(118),0,0,6261,4,1.0,251,46.9,3,0.200,0.094,1.0,0)
TDR100 (LaL(119),0,0,6271,4,1.0,251,46.9,3,0.200,0.109,1.0,0)
TDR100 (LaL(120),0,0,6281,4,1.0,251,48.9,3,0.200,0.148,1.0,0)

'MUX N3 (6, 1, 1-8)
TDR100 (LaL(121),0,0,6111,4,1.0,251,49.0,3,0.200,0.117,1.0,0)
TDR100 (LaL(122),0,0,6121,4,1.0,251,49.0,3,0.200,0.123,1.0,0)
TDR100 (LaL(123),0,0,6131,4,1.0,251,49.0,3,0.200,0.120,1.0,0)
TDR100 (LaL(124),0,0,6141,4,1.0,251,49.0,3,0.200,0.110,1.0,0)
TDR100 (LaL(125),0,0,6151,4,1.0,251,46.9,3,0.200,0.102,1.0,0)
TDR100 (LaL(126),0,0,6161,4,1.0,251,46.9,3,0.200,0.124,1.0,0)
TDR100 (LaL(127),0,0,6171,4,1.0,251,46.9,3,0.200,0.117,1.0,0)
TDR100 (LaL(128),0,0,6181,4,1.0,251,47.0,3,0.200,0.118,1.0,0)

For I = 1 To 128
LaL2(I) = LaL(I)^2 'Apparent Dielectric Constant K = (La/L)^2
Next I
'Topp Conversion from Dielectric Constant to Volumetric Water Content (VWC)
For I = 1 To 128
ToppVWC(I) = a0 + a1*LaL2(I) + a2*LaL2(I)^2 + a3*LaL2(I)^3
Next I

CallTable Data_TDR

NextScan
EndProg

Files collected on: https://www.dropbox.com/sh/dzhrd1ucnnpxdsu/AACG_bw0GC28FTVUNeetzbZqa?dl=0

Could you help me to solve these issues? Thanks for the support.

Regards,

Diego

* Last updated by: diegogradosb on 7/21/2015 @ 2:47 PM *

Log in or register to post/reply in the forum.