' Program Name: Program to operate 8 x Implexx Sap Flow Sensor on a CR350 data logger. ' ' (C) Copyright 2024. This program, and associated information, is copyright to, and property ' of Edaphic Scientific Pty Ltd. This program is not to be copied or disseminated to any ' person, under any format, with out the written permission of Edaphic Scientific Pty Ltd. ' ' Date: 21/11/2024 ' Program author: Implexx Sense 'Wiring 'Green -> G (Ground) 'White -> C1 (Data) 'Note: This program assumes SDI-12 addresses of a, b, c, d, e, f, g, h for respective sap flow sensors. 'Brown -> 12V (continuous 12V power) ConstTable (Station_Settings,0) Const MEAST_INTERVAL_MIN = 15 EndConstTable 'Declare Public Variables Public Logger_Temp, Batt_volt '===== SAP FLOW VARIABLES ================================================= 'C! Command - Main variables Public SapFlow_a(9) Alias SapFlow_a(1)=TotalSapFlow_a : Units TotalSapFlow_a=L/hr Alias SapFlow_a(2)=SFD_Outer_a : Units SFD_Outer_a=cm/hr Alias SapFlow_a(3)=SFD_Inner_a : Units SFD_Inner_a=cm/hr Alias SapFlow_a(4)=Alpha_Outer_a Alias SapFlow_a(5)=Alpha_Inner_a Alias SapFlow_a(6)=Beta_Outer_a Alias SapFlow_a(7)=Beta_Inner_a Alias SapFlow_a(8)=Tmax_Outer_a : Units Tmax_Outer_a=secs Alias SapFlow_a(9)=Tmax_Inner_a : Units Tmax_Inner_a=secs Public SapFlow_b(9) Alias SapFlow_b(1)=TotalSapFlow_b : Units TotalSapFlow_b=L/hr Alias SapFlow_b(2)=SFD_Outer_b : Units SFD_Outer_b=cm/hr Alias SapFlow_b(3)=SFD_Inner_b : Units SFD_Inner_b=cm/hr Alias SapFlow_b(4)=Alpha_Outer_b Alias SapFlow_b(5)=Alpha_Inner_b Alias SapFlow_b(6)=Beta_Outer_b Alias SapFlow_b(7)=Beta_Inner_b Alias SapFlow_b(8)=Tmax_Outer_b : Units Tmax_Outer_b=secs Alias SapFlow_b(9)=Tmax_Inner_b : Units Tmax_Inner_b=secs Public SapFlow_c(9) Alias SapFlow_c(1)=TotalSapFlow_c : Units TotalSapFlow_c=L/hr Alias SapFlow_c(2)=SFD_Outer_c : Units SFD_Outer_c=cm/hr Alias SapFlow_c(3)=SFD_Inner_c : Units SFD_Inner_c=cm/hr Alias SapFlow_c(4)=Alpha_Outer_c Alias SapFlow_c(5)=Alpha_Inner_c Alias SapFlow_c(6)=Beta_Outer_c Alias SapFlow_c(7)=Beta_Inner_c Alias SapFlow_c(8)=Tmax_Outer_c : Units Tmax_Outer_c=secs Alias SapFlow_c(9)=Tmax_Inner_c : Units Tmax_Inner_c=secs Public SapFlow_d(9) Alias SapFlow_d(1)=TotalSapFlow_d : Units TotalSapFlow_d=L/hr Alias SapFlow_d(2)=SFD_Outer_d : Units SFD_Outer_d=cm/hr Alias SapFlow_d(3)=SFD_Inner_d : Units SFD_Inner_d=cm/hr Alias SapFlow_d(4)=Alpha_Outer_d Alias SapFlow_d(5)=Alpha_Inner_d Alias SapFlow_d(6)=Beta_Outer_d Alias SapFlow_d(7)=Beta_Inner_d Alias SapFlow_d(8)=Tmax_Outer_d : Units Tmax_Outer_d=secs Alias SapFlow_d(9)=Tmax_Inner_d : Units Tmax_Inner_d=secs Public SapFlow_e(9) Alias SapFlow_e(1)=TotalSapFlow_e : Units TotalSapFlow_e=L/hr Alias SapFlow_e(2)=SFD_Outer_e : Units SFD_Outer_e=cm/hr Alias SapFlow_e(3)=SFD_Inner_e : Units SFD_Inner_e=cm/hr Alias SapFlow_e(4)=Alpha_Outer_e Alias SapFlow_e(5)=Alpha_Inner_e Alias SapFlow_e(6)=Beta_Outer_e Alias SapFlow_e(7)=Beta_Inner_e Alias SapFlow_e(8)=Tmax_Outer_e : Units Tmax_Outer_e=secs Alias SapFlow_e(9)=Tmax_Inner_e : Units Tmax_Inner_e=secs Public SapFlow_f(9) Alias SapFlow_f(1)=TotalSapFlow_f : Units TotalSapFlow_f=L/hr Alias SapFlow_f(2)=SFD_Outer_f : Units SFD_Outer_f=cm/hr Alias SapFlow_f(3)=SFD_Inner_f : Units SFD_Inner_f=cm/hr Alias SapFlow_f(4)=Alpha_Outer_f Alias SapFlow_f(5)=Alpha_Inner_f Alias SapFlow_f(6)=Beta_Outer_f Alias SapFlow_f(7)=Beta_Inner_f Alias SapFlow_f(8)=Tmax_Outer_f : Units Tmax_Outer_f=secs Alias SapFlow_f(9)=Tmax_Inner_f : Units Tmax_Inner_f=secs Public SapFlow_g(9) Alias SapFlow_g(1)=TotalSapFlow_g : Units TotalSapFlow_g=L/hr Alias SapFlow_g(2)=SFD_Outer_g : Units SFD_Outer_g=cm/hr Alias SapFlow_g(3)=SFD_Inner_g : Units SFD_Inner_g=cm/hr Alias SapFlow_g(4)=Alpha_Outer_g Alias SapFlow_g(5)=Alpha_Inner_g Alias SapFlow_g(6)=Beta_Outer_g Alias SapFlow_g(7)=Beta_Inner_g Alias SapFlow_g(8)=Tmax_Outer_g : Units Tmax_Outer_g=secs Alias SapFlow_g(9)=Tmax_Inner_g : Units Tmax_Inner_g=secs Public SapFlow_h(9) Alias SapFlow_h(1)=TotalSapFlow_h : Units TotalSapFlow_h=L/hr Alias SapFlow_h(2)=SFD_Outer_h : Units SFD_Outer_h=cm/hr Alias SapFlow_h(3)=SFD_Inner_h : Units SFD_Inner_h=cm/hr Alias SapFlow_h(4)=Alpha_Outer_h Alias SapFlow_h(5)=Alpha_Inner_h Alias SapFlow_h(6)=Beta_Outer_h Alias SapFlow_h(7)=Beta_Inner_h Alias SapFlow_h(8)=Tmax_Outer_h : Units Tmax_Outer_h=secs Alias SapFlow_h(9)=Tmax_Inner_h : Units Tmax_Inner_h=secs Dim d_SapFlow(9) 'This variable is required for correct timing of M! or C! command measurements '===== STEM TEMPERATURE VARIABLES ========================================= 'C1! Command - Outer thermistor measurements 'C2! Command - Inner thermistor measurements Public Stem_Temp_Outer_a(6) 'Public Stem_Temp_Inner_a(6) 'Alias Stem_Temp_Outer_a(1) = Pre_Temp_Down_Outer_a : Units Pre_Temp_Down_Outer_a=deg_C 'Alias Stem_Temp_Outer_a(2) = Max_Temp_Down_Outer_a : Units Max_Temp_Down_Outer_a=deg_C 'Alias Stem_Temp_Outer_a(3) = Post_Temp_Down_Outer_a : Units Post_Temp_Down_Outer_a=deg_C 'Alias Stem_Temp_Outer_a(4) = Pre_Temp_Upper_Outer_a : Units Pre_Temp_Upper_Outer_a=deg_C 'Alias Stem_Temp_Outer_a(5) = Max_Temp_Upper_Outer_a : Units Max_Temp_Upper_Outer_a=deg_C 'Alias Stem_Temp_Outer_a(6) = Post_Temp_Upper_Outer_a : Units Post_Temp_Upper_Outer_a=deg_C 'Alias Stem_Temp_Inner_a(1) = Pre_Temp_Down_Inner_a : Units Pre_Temp_Down_Inner_a=deg_C 'Alias Stem_Temp_Inner_a(2) = Max_Temp_Down_Inner_a : Units Max_Temp_Down_Inner_a=deg_C 'Alias Stem_Temp_Inner_a(3) = Post_Temp_Down_Inner_a : Units Post_Temp_Down_Inner_a=deg_C 'Alias Stem_Temp_Inner_a(4) = Pre_Temp_Upper_Inner_a : Units Pre_Temp_Upper_Inner_a=deg_C 'Alias Stem_Temp_Inner_a(5) = Max_Temp_Upper_Inner_a : Units Max_Temp_Upper_Inner_a=deg_C 'Alias Stem_Temp_Inner_a(6) = Post_Temp_Upper_Inner_a : Units Post_Temp_Upper_Inner_a=deg_C Public Stem_Temp_Outer_b(6) 'Public Stem_Temp_Inner_b(6) 'Alias Stem_Temp_Outer_b(1) = Pre_Temp_Down_Outer_b : Units Pre_Temp_Down_Outer_b=deg_C 'Alias Stem_Temp_Outer_b(2) = Max_Temp_Down_Outer_b : Units Max_Temp_Down_Outer_b=deg_C 'Alias Stem_Temp_Outer_b(3) = Post_Temp_Down_Outer_b : Units Post_Temp_Down_Outer_b=deg_C 'Alias Stem_Temp_Outer_b(4) = Pre_Temp_Upper_Outer_b : Units Pre_Temp_Upper_Outer_b=deg_C 'Alias Stem_Temp_Outer_b(5) = Max_Temp_Upper_Outer_b : Units Max_Temp_Upper_Outer_b=deg_C 'Alias Stem_Temp_Outer_b(6) = Post_Temp_Upper_Outer_b : Units Post_Temp_Upper_Outer_b=deg_C 'Alias Stem_Temp_Inner_b(1) = Pre_Temp_Down_Inner_b : Units Pre_Temp_Down_Inner_b=deg_C 'Alias Stem_Temp_Inner_b(2) = Max_Temp_Down_Inner_b : Units Max_Temp_Down_Inner_b=deg_C 'Alias Stem_Temp_Inner_b(3) = Post_Temp_Down_Inner_b : Units Post_Temp_Down_Inner_b=deg_C 'Alias Stem_Temp_Inner_b(4) = Pre_Temp_Upper_Inner_b : Units Pre_Temp_Upper_Inner_b=deg_C 'Alias Stem_Temp_Inner_b(5) = Max_Temp_Upper_Inner_b : Units Max_Temp_Upper_Inner_b=deg_C 'Alias Stem_Temp_Inner_b(6) = Post_Temp_Upper_Inner_b : Units Post_Temp_Upper_Inner_b=deg_C Public Stem_Temp_Outer_c(6) 'Public Stem_Temp_Inner_c(6) 'Alias Stem_Temp_Outer_c(1) = Pre_Temp_Down_Outer_c : Units Pre_Temp_Down_Outer_c=deg_C 'Alias Stem_Temp_Outer_c(2) = Max_Temp_Down_Outer_c : Units Max_Temp_Down_Outer_c=deg_C 'Alias Stem_Temp_Outer_c(3) = Post_Temp_Down_Outer_c : Units Post_Temp_Down_Outer_c=deg_C 'Alias Stem_Temp_Outer_c(4) = Pre_Temp_Upper_Outer_c : Units Pre_Temp_Upper_Outer_c=deg_C 'Alias Stem_Temp_Outer_c(5) = Max_Temp_Upper_Outer_c : Units Max_Temp_Upper_Outer_c=deg_C 'Alias Stem_Temp_Outer_c(6) = Post_Temp_Upper_Outer_c : Units Post_Temp_Upper_Outer_c=deg_C 'Alias Stem_Temp_Inner_c(1) = Pre_Temp_Down_Inner_c : Units Pre_Temp_Down_Inner_c=deg_C 'Alias Stem_Temp_Inner_c(2) = Max_Temp_Down_Inner_c : Units Max_Temp_Down_Inner_c=deg_C 'Alias Stem_Temp_Inner_c(3) = Post_Temp_Down_Inner_c : Units Post_Temp_Down_Inner_c=deg_C 'Alias Stem_Temp_Inner_c(4) = Pre_Temp_Upper_Inner_c : Units Pre_Temp_Upper_Inner_c=deg_C 'Alias Stem_Temp_Inner_c(5) = Max_Temp_Upper_Inner_c : Units Max_Temp_Upper_Inner_c=deg_C 'Alias Stem_Temp_Inner_c(6) = Post_Temp_Upper_Inner_c : Units Post_Temp_Upper_Inner_c=deg_C Public Stem_Temp_Outer_d(6) 'Public Stem_Temp_Inner_d(6) 'Alias Stem_Temp_Outer_d(1) = Pre_Temp_Down_Outer_d : Units Pre_Temp_Down_Outer_d=deg_C 'Alias Stem_Temp_Outer_d(2) = Max_Temp_Down_Outer_d : Units Max_Temp_Down_Outer_d=deg_C 'Alias Stem_Temp_Outer_d(3) = Post_Temp_Down_Outer_d : Units Post_Temp_Down_Outer_d=deg_C 'Alias Stem_Temp_Outer_d(4) = Pre_Temp_Upper_Outer_d : Units Pre_Temp_Upper_Outer_d=deg_C 'Alias Stem_Temp_Outer_d(5) = Max_Temp_Upper_Outer_d : Units Max_Temp_Upper_Outer_d=deg_C 'Alias Stem_Temp_Outer_d(6) = Post_Temp_Upper_Outer_d : Units Post_Temp_Upper_Outer_d=deg_C 'Alias Stem_Temp_Inner_d(1) = Pre_Temp_Down_Inner_d : Units Pre_Temp_Down_Inner_d=deg_C 'Alias Stem_Temp_Inner_d(2) = Max_Temp_Down_Inner_d : Units Max_Temp_Down_Inner_d=deg_C 'Alias Stem_Temp_Inner_d(3) = Post_Temp_Down_Inner_d : Units Post_Temp_Down_Inner_d=deg_C 'Alias Stem_Temp_Inner_d(4) = Pre_Temp_Upper_Inner_d : Units Pre_Temp_Upper_Inner_d=deg_C 'Alias Stem_Temp_Inner_d(5) = Max_Temp_Upper_Inner_d : Units Max_Temp_Upper_Inner_d=deg_C 'Alias Stem_Temp_Inner_d(6) = Post_Temp_Upper_Inner_d : Units Post_Temp_Upper_Inner_d=deg_C Public Stem_Temp_Outer_e(6) 'Public Stem_Temp_Inner_e(6) 'Alias Stem_Temp_Outer_e(1) = Pre_Temp_Down_Outer_e : Units Pre_Temp_Down_Outer_e=deg_C 'Alias Stem_Temp_Outer_e(2) = Max_Temp_Down_Outer_e : Units Max_Temp_Down_Outer_e=deg_C 'Alias Stem_Temp_Outer_e(3) = Post_Temp_Down_Outer_e : Units Post_Temp_Down_Outer_e=deg_C 'Alias Stem_Temp_Outer_e(4) = Pre_Temp_Upper_Outer_e : Units Pre_Temp_Upper_Outer_e=deg_C 'Alias Stem_Temp_Outer_e(5) = Max_Temp_Upper_Outer_e : Units Max_Temp_Upper_Outer_e=deg_C 'Alias Stem_Temp_Outer_e(6) = Post_Temp_Upper_Outer_e : Units Post_Temp_Upper_Outer_e=deg_C 'Alias Stem_Temp_Inner_e(1) = Pre_Temp_Down_Inner_e : Units Pre_Temp_Down_Inner_e=deg_C 'Alias Stem_Temp_Inner_e(2) = Max_Temp_Down_Inner_e : Units Max_Temp_Down_Inner_e=deg_C 'Alias Stem_Temp_Inner_e(3) = Post_Temp_Down_Inner_e : Units Post_Temp_Down_Inner_e=deg_C 'Alias Stem_Temp_Inner_e(4) = Pre_Temp_Upper_Inner_e : Units Pre_Temp_Upper_Inner_e=deg_C 'Alias Stem_Temp_Inner_e(5) = Max_Temp_Upper_Inner_e : Units Max_Temp_Upper_Inner_e=deg_C 'Alias Stem_Temp_Inner_e(6) = Post_Temp_Upper_Inner_e : Units Post_Temp_Upper_Inner_e=deg_C Public Stem_Temp_Outer_f(6) 'Public Stem_Temp_Inner_f(6) 'Alias Stem_Temp_Outer_f(1) = Pre_Temp_Down_Outer_f : Units Pre_Temp_Down_Outer_f=deg_C 'Alias Stem_Temp_Outer_f(2) = Max_Temp_Down_Outer_f : Units Max_Temp_Down_Outer_f=deg_C 'Alias Stem_Temp_Outer_f(3) = Post_Temp_Down_Outer_f : Units Post_Temp_Down_Outer_f=deg_C 'Alias Stem_Temp_Outer_f(4) = Pre_Temp_Upper_Outer_f : Units Pre_Temp_Upper_Outer_f=deg_C 'Alias Stem_Temp_Outer_f(5) = Max_Temp_Upper_Outer_f : Units Max_Temp_Upper_Outer_f=deg_C 'Alias Stem_Temp_Outer_f(6) = Post_Temp_Upper_Outer_f : Units Post_Temp_Upper_Outer_f=deg_C 'Alias Stem_Temp_Inner_f(1) = Pre_Temp_Down_Inner_f : Units Pre_Temp_Down_Inner_f=deg_C 'Alias Stem_Temp_Inner_f(2) = Max_Temp_Down_Inner_f : Units Max_Temp_Down_Inner_f=deg_C 'Alias Stem_Temp_Inner_f(3) = Post_Temp_Down_Inner_f : Units Post_Temp_Down_Inner_f=deg_C 'Alias Stem_Temp_Inner_f(4) = Pre_Temp_Upper_Inner_f : Units Pre_Temp_Upper_Inner_f=deg_C 'Alias Stem_Temp_Inner_f(5) = Max_Temp_Upper_Inner_f : Units Max_Temp_Upper_Inner_f=deg_C 'Alias Stem_Temp_Inner_f(6) = Post_Temp_Upper_Inner_f : Units Post_Temp_Upper_Inner_f=deg_C Public Stem_Temp_Outer_g(6) 'Public Stem_Temp_Inner_g(6) 'Alias Stem_Temp_Outer_g(1) = Pre_Temp_Down_Outer_g : Units Pre_Temp_Down_Outer_g=deg_C 'Alias Stem_Temp_Outer_g(2) = Max_Temp_Down_Outer_g : Units Max_Temp_Down_Outer_g=deg_C 'Alias Stem_Temp_Outer_g(3) = Post_Temp_Down_Outer_g : Units Post_Temp_Down_Outer_g=deg_C 'Alias Stem_Temp_Outer_g(4) = Pre_Temp_Upper_Outer_g : Units Pre_Temp_Upper_Outer_g=deg_C 'Alias Stem_Temp_Outer_g(5) = Max_Temp_Upper_Outer_g : Units Max_Temp_Upper_Outer_g=deg_C 'Alias Stem_Temp_Outer_g(6) = Post_Temp_Upper_Outer_g : Units Post_Temp_Upper_Outer_g=deg_C 'Alias Stem_Temp_Inner_g(1) = Pre_Temp_Down_Inner_g : Units Pre_Temp_Down_Inner_g=deg_C 'Alias Stem_Temp_Inner_g(2) = Max_Temp_Down_Inner_g : Units Max_Temp_Down_Inner_g=deg_C 'Alias Stem_Temp_Inner_g(3) = Post_Temp_Down_Inner_g : Units Post_Temp_Down_Inner_g=deg_C 'Alias Stem_Temp_Inner_g(4) = Pre_Temp_Upper_Inner_g : Units Pre_Temp_Upper_Inner_g=deg_C 'Alias Stem_Temp_Inner_g(5) = Max_Temp_Upper_Inner_g : Units Max_Temp_Upper_Inner_g=deg_C 'Alias Stem_Temp_Inner_g(6) = Post_Temp_Upper_Inner_g : Units Post_Temp_Upper_Inner_g=deg_C Public Stem_Temp_Outer_h(6) 'Public Stem_Temp_Inner_h(6) 'Alias Stem_Temp_Outer_h(1) = Pre_Temp_Down_Outer_h : Units Pre_Temp_Down_Outer_h=deg_C 'Alias Stem_Temp_Outer_h(2) = Max_Temp_Down_Outer_h : Units Max_Temp_Down_Outer_h=deg_C 'Alias Stem_Temp_Outer_h(3) = Post_Temp_Down_Outer_h : Units Post_Temp_Down_Outer_h=deg_C 'Alias Stem_Temp_Outer_h(4) = Pre_Temp_Upper_Outer_h : Units Pre_Temp_Upper_Outer_h=deg_C 'Alias Stem_Temp_Outer_h(5) = Max_Temp_Upper_Outer_h : Units Max_Temp_Upper_Outer_h=deg_C 'Alias Stem_Temp_Outer_h(6) = Post_Temp_Upper_Outer_h : Units Post_Temp_Upper_Outer_h=deg_C 'Alias Stem_Temp_Inner_h(1) = Pre_Temp_Down_Inner_h : Units Pre_Temp_Down_Inner_h=deg_C 'Alias Stem_Temp_Inner_h(2) = Max_Temp_Down_Inner_h : Units Max_Temp_Down_Inner_h=deg_C 'Alias Stem_Temp_Inner_h(3) = Post_Temp_Down_Inner_h : Units Post_Temp_Down_Inner_h=deg_C 'Alias Stem_Temp_Inner_h(4) = Pre_Temp_Upper_Inner_h : Units Pre_Temp_Upper_Inner_h=deg_C 'Alias Stem_Temp_Inner_h(5) = Max_Temp_Upper_Inner_h : Units Max_Temp_Upper_Inner_h=deg_C 'Alias Stem_Temp_Inner_h(6) = Post_Temp_Upper_Inner_h : Units Post_Temp_Upper_Inner_h=deg_C '===== STEM WATER CONTENT VARIABLE ======================================== 'C3! Command Public Stem_Water_a(6) Alias Stem_Water_a(1) = SWC_Outer_a : Units SWC_Outer_a=% Alias Stem_Water_a(2) = SWC_Inner_a : Units SWC_Inner_a=% Alias Stem_Water_a(3) = Heat_Capacity_Outer_a : Units Heat_Capacity_Outer_a=kJ/m^3 Alias Stem_Water_a(4) = Heat_Capacity_Inner_a : Units Heat_Capacity_Inner_a=kJ/m^3 Alias Stem_Water_a(5) = Pulse_Energy_a : Units Pulse_Energy_a=J/m Alias Stem_Water_a(6) = Pulse_Duration_a : Units Pulse_Duration_a=sec Public Stem_Water_b(6) Alias Stem_Water_b(1) = SWC_Outer_b : Units SWC_Outer_b=% Alias Stem_Water_b(2) = SWC_Inner_b : Units SWC_Inner_b=% Alias Stem_Water_b(3) = Heat_Capacity_Outer_b : Units Heat_Capacity_Outer_b=kJ/m^3 Alias Stem_Water_b(4) = Heat_Capacity_Inner_b : Units Heat_Capacity_Inner_b=kJ/m^3 Alias Stem_Water_b(5) = Pulse_Energy_b : Units Pulse_Energy_b=J/m Alias Stem_Water_b(6) = Pulse_Duration_b : Units Pulse_Duration_b=sec Public Stem_Water_c(6) Alias Stem_Water_c(1) = SWC_Outer_c : Units SWC_Outer_c=% Alias Stem_Water_c(2) = SWC_Inner_c : Units SWC_Inner_c=% Alias Stem_Water_c(3) = Heat_Capacity_Outer_c : Units Heat_Capacity_Outer_c=kJ/m^3 Alias Stem_Water_c(4) = Heat_Capacity_Inner_c : Units Heat_Capacity_Inner_c=kJ/m^3 Alias Stem_Water_c(5) = Pulse_Energy_c : Units Pulse_Energy_c=J/m Alias Stem_Water_c(6) = Pulse_Duration_c : Units Pulse_Duration_c=sec Public Stem_Water_d(6) Alias Stem_Water_d(1) = SWC_Outer_d : Units SWC_Outer_d=% Alias Stem_Water_d(2) = SWC_Inner_d : Units SWC_Inner_d=% Alias Stem_Water_d(3) = Heat_Capacity_Outer_d : Units Heat_Capacity_Outer_d=kJ/m^3 Alias Stem_Water_d(4) = Heat_Capacity_Inner_d : Units Heat_Capacity_Inner_d=kJ/m^3 Alias Stem_Water_d(5) = Pulse_Energy_d : Units Pulse_Energy_d=J/m Alias Stem_Water_d(6) = Pulse_Duration_d : Units Pulse_Duration_d=sec Public Stem_Water_e(6) Alias Stem_Water_e(1) = SWC_Outer_e : Units SWC_Outer_e=% Alias Stem_Water_e(2) = SWC_Inner_e : Units SWC_Inner_e=% Alias Stem_Water_e(3) = Heat_Capacity_Outer_e : Units Heat_Capacity_Outer_e=kJ/m^3 Alias Stem_Water_e(4) = Heat_Capacity_Inner_e : Units Heat_Capacity_Inner_e=kJ/m^3 Alias Stem_Water_e(5) = Pulse_Energy_e : Units Pulse_Energy_e=J/m Alias Stem_Water_e(6) = Pulse_Duration_e : Units Pulse_Duration_e=sec Public Stem_Water_f(6) Alias Stem_Water_f(1) = SWC_Outer_f : Units SWC_Outer_f=% Alias Stem_Water_f(2) = SWC_Inner_f : Units SWC_Inner_f=% Alias Stem_Water_f(3) = Heat_Capacity_Outer_f : Units Heat_Capacity_Outer_f=kJ/m^3 Alias Stem_Water_f(4) = Heat_Capacity_Inner_f : Units Heat_Capacity_Inner_f=kJ/m^3 Alias Stem_Water_f(5) = Pulse_Energy_f : Units Pulse_Energy_f=J/m Alias Stem_Water_f(6) = Pulse_Duration_f : Units Pulse_Duration_f=sec Public Stem_Water_g(6) Alias Stem_Water_g(1) = SWC_Outer_g : Units SWC_Outer_g=% Alias Stem_Water_g(2) = SWC_Inner_g : Units SWC_Inner_g=% Alias Stem_Water_g(3) = Heat_Capacity_Outer_g : Units Heat_Capacity_Outer_g=kJ/m^3 Alias Stem_Water_g(4) = Heat_Capacity_Inner_g : Units Heat_Capacity_Inner_g=kJ/m^3 Alias Stem_Water_g(5) = Pulse_Energy_g : Units Pulse_Energy_g=J/m Alias Stem_Water_g(6) = Pulse_Duration_g : Units Pulse_Duration_g=sec Public Stem_Water_h(6) Alias Stem_Water_h(1) = SWC_Outer_h : Units SWC_Outer_h=% Alias Stem_Water_h(2) = SWC_Inner_h : Units SWC_Inner_h=% Alias Stem_Water_h(3) = Heat_Capacity_Outer_h : Units Heat_Capacity_Outer_h=kJ/m^3 Alias Stem_Water_h(4) = Heat_Capacity_Inner_h : Units Heat_Capacity_Inner_h=kJ/m^3 Alias Stem_Water_h(5) = Pulse_Energy_h : Units Pulse_Energy_h=J/m Alias Stem_Water_h(6) = Pulse_Duration_h : Units Pulse_Duration_h=sec '===== DATA TABLES ===================================================== DataTable (Sap_Flow,1,-1) DataInterval (0,MEAST_INTERVAL_MIN,Min,10) Sample (1,Batt_volt(),FP2) Sample (1,Logger_Temp(),FP2) Sample (9,SapFlow_a(),IEEE4) Sample (9,SapFlow_b(),IEEE4) Sample (9,SapFlow_c(),IEEE4) Sample (9,SapFlow_d(),IEEE4) Sample (9,SapFlow_e(),IEEE4) Sample (9,SapFlow_f(),IEEE4) Sample (9,SapFlow_g(),IEEE4) Sample (9,SapFlow_h(),IEEE4) EndTable DataTable (Stem_Data,1,-1) DataInterval (0,MEAST_INTERVAL_MIN,Min,10) Sample (1,Stem_Temp_Outer_a(1),IEEE4) Sample (6,Stem_Water_a(),IEEE4) Sample (1,Stem_Temp_Outer_b(1),IEEE4) Sample (6,Stem_Water_b(),IEEE4) Sample (1,Stem_Temp_Outer_c(1),IEEE4) Sample (6,Stem_Water_c(),IEEE4) Sample (1,Stem_Temp_Outer_d(1),IEEE4) Sample (6,Stem_Water_d(),IEEE4) Sample (1,Stem_Temp_Outer_e(1),IEEE4) Sample (6,Stem_Water_e(),IEEE4) Sample (1,Stem_Temp_Outer_f(1),IEEE4) Sample (6,Stem_Water_f(),IEEE4) Sample (1,Stem_Temp_Outer_g(1),IEEE4) Sample (6,Stem_Water_g(),IEEE4) Sample (1,Stem_Temp_Outer_h(1),IEEE4) Sample (6,Stem_Water_h(),IEEE4) EndTable '===== MAIN PROGRAM ======================================================= BeginProg Scan (MEAST_INTERVAL_MIN,Min,0,0) PanelTemp (Logger_Temp,50) Battery (Batt_volt) 'Send command to start measurement on C1 for lower sensors SDI12Recorder (d_SapFlow(),C1,"a","C!",1.0,0,-1,0) SDI12Recorder (d_SapFlow(),C1,"b","C!",1.0,0,-1,0) SDI12Recorder (d_SapFlow(),C1,"c","C!",1.0,0,-1,0) SDI12Recorder (d_SapFlow(),C1,"d","C!",1.0,0,-1,0) SDI12Recorder (d_SapFlow(),C1,"e","C!",1.0,0,-1,0) SDI12Recorder (d_SapFlow(),C1,"f","C!",1.0,0,-1,0) SDI12Recorder (d_SapFlow(),C1,"g","C!",1.0,0,-1,0) SDI12Recorder (d_SapFlow(),C1,"h","C!",1.0,0,-1,0) ' Get the data from the C! command Delay (0,140,Sec) SDI12Recorder (SapFlow_a(1),C1,"a","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_a(6),C1,"a","D1!",1.0,0,-1,1) SDI12Recorder (SapFlow_b(1),C1,"b","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_b(6),C1,"b","D1!",1.0,0,-1,1) SDI12Recorder (SapFlow_c(1),C1,"c","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_c(6),C1,"c","D1!",1.0,0,-1,1) SDI12Recorder (SapFlow_d(1),C1,"d","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_d(6),C1,"d","D1!",1.0,0,-1,1) SDI12Recorder (SapFlow_e(1),C1,"e","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_e(6),C1,"e","D1!",1.0,0,-1,1) SDI12Recorder (SapFlow_f(1),C1,"f","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_f(6),C1,"f","D1!",1.0,0,-1,1) SDI12Recorder (SapFlow_g(1),C1,"g","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_g(6),C1,"g","D1!",1.0,0,-1,1) SDI12Recorder (SapFlow_h(1),C1,"h","D0!",1.0,0,-1,1) SDI12Recorder (SapFlow_h(6),C1,"h","D1!",1.0,0,-1,1) ' Get the data from the C1! C2! C3! C4! and C5! commands SDI12Recorder (Stem_Temp_Outer_a(),C1,"a","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_a(),C1,"a","C3!",1.0,0,-1,1) SDI12Recorder (Stem_Temp_Outer_b(),C1,"b","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_b(),C1,"b","C3!",1.0,0,-1,1) SDI12Recorder (Stem_Temp_Outer_c(),C1,"c","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_c(),C1,"c","C3!",1.0,0,-1,1) SDI12Recorder (Stem_Temp_Outer_d(),C1,"d","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_d(),C1,"d","C3!",1.0,0,-1,1) SDI12Recorder (Stem_Temp_Outer_e(),C1,"e","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_e(),C1,"e","C3!",1.0,0,-1,1) SDI12Recorder (Stem_Temp_Outer_f(),C1,"f","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_f(),C1,"f","C3!",1.0,0,-1,1) SDI12Recorder (Stem_Temp_Outer_g(),C1,"g","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_g(),C1,"g","C3!",1.0,0,-1,1) SDI12Recorder (Stem_Temp_Outer_h(),C1,"h","C1!",1.0,0,-1,1) SDI12Recorder (Stem_Water_h(),C1,"h","C3!",1.0,0,-1,1) 'Call Output Tables CallTable Sap_Flow CallTable Stem_Data NextScan EndProg