nthallen / monarch

Monarch Data Acquisition System
0 stars 1 forks source link

Extraction introduces errors #105

Closed nthallen closed 4 years ago

nthallen commented 4 years ago

Demonstrated in DPOPS 200511.6 (and almost every other run). The RTC elapsed time counter should be linearly monotonic, but there are quasi periodic spikes. In the initial extraction in this run, one spike in particular occurred in uDACS_A_elapsed at:

Three successive values were:

Upon examining the raw data file (00/00/27.dat in this case), it was discovered that middle value was actually:

which makes more sense.

What this means is that the erroneous values arise not during data acquisition or realtime logging, but during extraction. I suspect this occurs in association with when a buffer in rdr or bfr fills up due to the higher speed processing. I suspect this will be difficult to track down, since any instrumentation is likely to slow things down to the point where the problem no longer occurs.

nthallen commented 4 years ago

DPOPS source for this run is 11c012675

nthallen commented 4 years ago

This appears to be resolved. It may well have been associated with bad code for converting 32 bit values to text.