EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
<== Date ==> <== Thread ==>

Subject: Question: CA monitor event and timestamp handling on compress record reset
From: "Kim, Kukhee via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 11 Feb 2026 00:34:10 +0000
Hello EPICS community,
I’d like to ask for guidance regarding a possible issue (or design choice) in the compress record reset behavior.
In a use case involving long-term data collection, a compress record is triggered infrequently (e.g., ~10-minute intervals) to capture very slow source-side events (~Hz) over weeks to months. After a long accumulation period, the compress record is reset using:
.RES = 1
This correctly clears the internal ring buffer and sets NUSE = 0. However, we observed that Channel Access monitors (e.g., camonitor) do not receive an update at the time of reset. The reset becomes visible to CA clients only after the next compress trigger occurs.
From initial inspection, it appears that the reset path (handled in special() in the compress record support) clears internal state but does not generate a CA monitor event.
One possible approach would be to explicitly call monitor() after handling the reset in special(). However, this raises a question about timestamp semantics:
  • If a reset is treated as a form of record processing, should we update the timestamp (e.g., via recGblTimeStamp(prec)) before calling monitor()?
  • Alternatively, if reset is considered a configuration/state change rather than data acquisition, is it preferable not to update the timestamp and simply notify clients of the state change?
I’d appreciate any guidance on the intended behavior here, or whether there is an established pattern in EPICS Base for handling CA monitor events and timestamps in reset-style operations.
Thank you very much for your time and insight.
Best regards,
Kukhee
SLAC National Accelerator Laboratory

Replies:
Re: Question: CA monitor event and timestamp handling on compress record reset Mark Rivers via Tech-talk

Navigate by Date:
Prev: Yes, Base 7.0.10 was released! Johnson, Andrew N. via Tech-talk
Next: Re: Question: CA monitor event and timestamp handling on compress record reset Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
Navigate by Thread:
Prev: RE: How to send caPutLog logs to Grafana Loki Afonso Haruo Carnielli Mukai via Tech-talk
Next: Re: Question: CA monitor event and timestamp handling on compress record reset Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  2025  <2026
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·