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.

Sporadic Output


kmasa438 May 2, 2016 02:54 PM

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. 


JDavis May 2, 2016 05:01 PM

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.


kmasa438 May 2, 2016 05:17 PM

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?   


JDavis May 2, 2016 06:03 PM

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.

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