[time-nuts] SR620: odd measurements when in remote control

Hal Murray hmurray at megapathdsl.net
Wed Dec 21 19:44:36 EST 2016


> on start up i have an odd behavior.

> 0, 1.999999881895E+07
> 0, 1.999999881912E+07
> 0, 1.999999881757E+07
> 7, 1.999999881856E+07
> 17, 1.999999881878E+07
> 27, 1.999999881900E+07

> What do you think?

Looks like you are expecting readings every 10 seconds but it's sending a few 
samples during startup and they are sitting in the system input buffer until 
you get around to reading them.

I would probably "fix" that by reading and discarding with a short timeout 
before dropping into the main loop.  That sort of code is often delicate 
since there might be one last chunk in the pipeline when your last read times 
out.  Plan B is to discard N samples where N is adjusted to include 1 or 2 of 
you main samples just to be sure.




-- 
These are my opinions.  I hate spam.





More information about the time-nuts mailing list