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.

Logger not recording on correct interval


freesurf13 Mar 27, 2014 09:08 PM

Hi,

My data logger keeps recording at weird intervals. It is suppose to be recording at 15 minute intervals, but sometimes goes to 30, or skips a few hours. Does anyone have any idea of what might going on? Battery seems to be fine. Here is the equipment, program and an example of the data...

Equipment
CR800 data logger
Campbell rain gage TE-525L
Stage from Design Analysis H-350 logger via SDI-12 signal

'CR800 Series
'Created by Short Cut (2.9)

'Declare Variables and Units
Public Batt_Volt(1)
Public Results(9)
Public Rain_in(1)
Public Total_24
Public Total_1hr
Public Total_12hr
Public Total_Week

Alias Results(1)=Stage
Alias Results(2)=PSI
Alias Results(3)=Temp
Alias Results(4)=Result4
Alias Results(5)=Result5
Alias Results(6)=Result6
Alias Results(7)=Result7
Alias Results(8)=Result8
Alias Results(9)=Result9

Units Batt_Volt=Volts
Units Rain_in=inch

'Define Data Tables
DataTable(Table1,True,-1)
DataInterval(0,15,Min,10)
Sample(1,Stage,FP2)
Sample(1,Batt_Volt,FP2)
Totalize(1,Rain_in,FP2,False)
Sample(1,Total_1hr,FP2)
Sample(1,Total_12hr,FP2)
Sample(1,Total_Week,FP2)
Sample(1,Total_24,FP2)
FieldNames("Total_24hr")
EndTable

DataTable(Table2,True,-1)
DataInterval(0,1440,Min,10)
Minimum(1,Batt_Volt,FP2,False,False)
EndTable

'Main Program
BeginProg
'Main Scan
Scan(5,Sec,1,0)
'Default Datalogger Battery Voltage measurement 'Batt_Volt'
Battery(Batt_Volt)
'Generic SDI-12 Sensor measurements 'Stage', 'PSI', 'Temp',
'Result4', 'Result5', 'Result6', 'Result7', 'Result8', and 'Result9'
SDI12Recorder(Results(),3,"1","M!",1,0)
'TE525/TE525WS Rain Gauge measurement 'Rain_in'
PulseCount(Rain_in,1,1,2,0,0.01,0)
'24 hour running total calculation 'Total_24'
Total_24=Total_24+Rain_in
If IfTime(24,1440,Min) Then Total_24=0
'24 hour running total calculation 'Total_1hr'
Total_1hr=Total_1hr+Rain_in
If IfTime(1,1440,Min) Then Total_1hr=0
'24 hour running total calculation 'Total_12hr'
Total_12hr=Total_12hr+Rain_in
If IfTime(12,1440,Min) Then Total_12hr=0
'24 hour running total calculation 'Total_Week'
Total_Week=Total_Week+Rain_in
If IfTime(128,1440,Min) Then Total_Week=0
'Call Data Tables and Store Data
CallTable(Table1)
CallTable(Table2)
NextScan
EndProg


"TOA5","WFK_Gage","CR800","23925","CR800.Std.25","CPU:WFK_rain_test_v2.CR8","24678","Table1"
"TIMESTAMP","RECORD","Stage","Batt_Volt","Rain_in_Tot","Total_1hr","Total_12hr","Total_Week","Total_24hr"
"TS","RN","","Volts","inch","","","",""
"","","Smp","Smp","Tot","Smp","Smp","Smp","Smp"
"2014-03-26 03:15:00",7347,3.041,12.88,0,0.25,1.05,1.05,1.05
"2014-03-26 03:45:00",7348,3.055,12.87,0.01,0.27,1.07,1.07,1.07
"2014-03-26 06:30:00",7349,3.109,12.86,0,0.31,1.11,1.11,1.11
"2014-03-26 07:00:00",7350,3.12,12.93,0,0.31,1.11,1.11,1.11
"2014-03-26 07:30:00",7351,3.134,13.2,0,0.31,1.11,1.11,1.11
"2014-03-26 10:45:00",7352,3.236,13.84,0,0.46,1.26,1.26,1.26
"2014-03-26 13:30:00",7353,3.331,14.27,0,0.58,1.38,1.38,1.38
"2014-03-26 14:00:00",7354,3.336,14.74,0,0.59,1.39,1.39,1.39
"2014-03-26 14:30:00",7355,3.365,14.74,0,0.59,1.39,1.39,1.39
"2014-03-26 15:00:00",7356,3.381,13.87,0,0.59,1.39,1.39,1.39
"2014-03-26 15:30:00",7357,3.393,14.73,0.01,0.6,1.4,1.4,1.4
"2014-03-26 16:00:00",7358,3.398,14.74,0,0.6,1.4,1.4,1.4
"2014-03-26 18:15:00",7359,3.497,13.07,0.05,0.7,1.5,1.5,1.5
"2014-03-26 18:45:00",7360,3.52,13.03,0.03,0.79,1.59,1.59,1.59
"2014-03-26 19:15:00",7361,3.55,13,0.02,0.83,1.63,1.63,1.63
"2014-03-26 19:45:00",7362,3.579,12.99,0.02,0.87,1.67,1.67,1.67
"2014-03-26 20:15:00",7363,3.606,12.98,0.01,0.88,1.68,1.68,1.68
"2014-03-26 20:45:00",7364,3.65,12.97,0.01,1,1.8,1.8,1.8
"2014-03-26 22:00:00",7365,3.754,12.94,0.05,1.19,1.99,1.99,1.99
"2014-03-26 22:30:00",7366,3.814,12.94,0,1.25,2.05,2.05,2.05
"2014-03-26 23:00:00",7367,3.882,12.92,0.03,1.34,2.14,2.14,2.14
"2014-03-26 23:30:00",7368,3.967,12.92,0.02,1.42,2.22,2.22,0
"2014-03-27 05:15:00",7369,4.789,12.85,0.01,1.59,2.39,2.39,0.65
"2014-03-27 05:45:00",7370,4.863,12.85,0.11,1.77,2.57,2.57,0.70
"2014-03-27 06:15:00",7371,4.955,12.84,0.02,1.86,2.66,2.66,0.75
"2014-03-27 06:45:00",7372,5.024,12.85,0,1.86,2.66,2.66,0.80
"2014-03-27 07:15:00",7373,5.059,13.06,0,1.86,2.66,2.66,0.80
"2014-03-27 07:45:00",7374,5.11,13.06,0.01,1.87,2.67,2.67,0.80
"2014-03-27 08:30:00",7375,5.143,13.44,0,1.87,2.67,2.67,0.80
"2014-03-27 09:00:00",7376,5.185,13.38,0.01,1.89,2.69,2.69,2.69
"2014-03-27 09:30:00",7377,5.224,13.31,0.1,2.02,2.82,2.82,2.82
"2014-03-27 10:00:00",7378,5.244,13.39,0.02,2.12,2.92,2.92,2.92
"2014-03-27 10:30:00",7379,5.292,14.91,0.02,2.15,2.95,2.95,2.95


Thanks!


GaryTRoberts Mar 27, 2014 11:59 PM

Sometimes the SDI sensor takes a bit to send it's data back to the logger. At times, this could take longer that the scan interval. So I would recommend that the SDIRecorder instruction be put in a slow sequence.

Are you seeing skipped scans in the status table?


freesurf13 Mar 28, 2014 12:38 AM

It looks like I'm not collecting a status table. However, I looked on my Public table and there isn't any missing intervals. So your probably right. I need a longer scan interval. I'll try changing it next week. Right know its beer thirty!

Thanks!


EarlyBird Mar 28, 2014 09:05 AM

You could increase your scan interval. Looking at your program there is no obvious reason why you could not set the scan at 15 min.

Also all of your IfTime instructions are wrong. For example

If IfTime(1,1440,Min) Then Total_1hr=0

This will reset Total_1hr at 1 min past midnight.

If IfTime(0,60,Min) Then Total_1hr=0

will reset every hour.

If IfTime(720,1440,Min) Then Total_12hr=0

will reset at 12:00 midday.


freesurf13 Apr 1, 2014 02:51 PM

I increased my scan interval and it seems to be recording at each interval now.

Thanks!!!

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