I'm running a CR10X datalogger to control a series of solenoids, pumps and also take measurements. The run time of the program varies depending on how long the pump needs to run but the program is always set to complete in 5 minutes. The program runs every 10 minutes and the data is set to output averages at the start of every hour. When downloading the data there are gaps in the dataset. Sometimes only one hour will be missing, other times there are longer gaps. Wondering if anyone has any insight into what might be causing the program to skip output instructions.
Based on your description, my guess is your program might be skipping scans.
For example, if you had a scan start at 9:50 and it completed at 10:01, you wouldn't get a record output for 10:00. The scan for that 10:00 start time didn't happen, so the table wouldn't trigger on the 10:00 time.
Thanks for the prompt response. That was something I've looked into but have mostly ruled out. The program runtime is less than the 10 minute interval (with a buffer to ensure that this doesn't occur). Through observation I have never observed the program running past 10 minutes into the next interval time. In cases where I've observed it starting a scan on the hour it still will fail to output the data. Could there be issues with flags or ends of loops that may cause a program to skip output instructions?
If you skip past the instruction setting the output flag high, it will not output a record. It could certainly be a problem with a flag or a misplaced loop end.