Good Day Everyone,
I created two DataTable to store the readings for T107 temperature probe at different interval, there is a 0.01 to 0.03 degree different in the readings store in the two table at the same timestamp.
TIMESTAMP, RECORD, batt_volt, PTemp, T107_C_Avg
26/3/2025, 17:18, 1, 12.05, 25.34, 25.02 @2 minutes DataTable
26/3/2025, 17:18, 4, 12.05, 25.34, 24.99 @6 minutes DataTable
'''DataTable1 to store records for every scan interval
DataTable (Table1,1,-1)
Sample (1,batt_volt,FP2)
Sample (1,PTemp,FP2)
Average (1,T107_C,FP2,0)
EndTable
'''DataTable_2
DataTable (Table2,1,-1)
DataInterval (0,6,Min,10) 'Store every 6 minutes
Sample (1,batt_volt,FP2)
Sample (1,PTemp,FP2)
Average (1,T107_C,FP2,0)
EndTable
BeginProg
Scan (2,Min,0,0)'Scan interval
PanelTemp (PTemp,250)
Battery (batt_volt)
Therm107 (T107_C,1,3,Vx1,0,_60Hz,1.0,0)
CallTable Table1
CallTable Table2
EndProg
Anyone can help me on this. Thanks.
Regards,
TLT
That is an average in the processing of the data table. The first table has no data interval, so it is an average of just the most recent reading. The second table is the average of the last 6 minues of readings (3 values). It is expected to see a small difference if temperature changed at all.
Thanks JDavis.
I replaced to " Sample", reading is fine now.
Thank you.
TLT