epics-modules / mrfioc2

EPICS driver for Micro Research Finland event timing system devices
http://epics-modules.github.io/mrfioc2/
Other
8 stars 30 forks source link

Add buffered capture of event timestamps #37

Closed mdavidsaver closed 3 years ago

mdavidsaver commented 4 years ago

Adds the ability to configure per-event buffering of event RX timestamps, with readout as a batch (in a waveformRecord). Batches are marked either by a manually via a record, or by a reception of second "flush" event code. Times are double buffered, so results will remain stable during readout. Buffer depth is determined by the largest NELM among the waveformRecords associated with a buffer. There is a per-buffer overflow counter.

Events times may be encoded into a waveformRecord in three ways: TimesRelFirst, TimesRelFlush, or TimesRelPrevFlush.