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  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to archive PVs regularly even if they are not updating
From: "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 26 Sep 2022 13:19:46 +0000
Yes, you can cause records to send updates even when the value doesn't change.

For ai, calc, ao, .. records, set the ADEL field to -1, so now the record will send a new value whenever processed.

But then you'll fill your disk with the same value over and over.
As Ralph mentioned, archive retrieval for a time range from start to end should actually include the last sample at-or-before the start time, so you see what the value was right then.

Also consider operator setpoints. Operators may not have changed some setpoint for months. In the archived data, it can be useful to have that sample with the value and time stamp of when it was last set by an operator, instead of repeating the same value every second, wasting disk space, and then having to add additional logic to figure out when the value last changed.
Instead, the general idea for archiving should be: Configure the ADEL a little wider than the MDEL to throttle the number of updates from the IOC such that you get "significant changes" but not every little bit of noise. The archive then only stores those received changes, and the data retrieval always includes the last sample at-or-before the requested start time so that for example a plot can show what a user setpoint was at the start of the plot, even though operators last adjusted that setpoint many moons ago and had no need to change it because it was and still is a very good setpoint.

-Kay


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Shankar, Murali via Tech-talk <tech-talk at aps.anl.gov>
Sent: Monday, September 26, 2022 9:01 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] Re: How to archive PVs regularly even if they are not updating
 
The EAA uses camonitors for both SCAN and MONITOR requests. So, samples should be recorded as long as the IOC is sending camonitor events - the flip side of this is that no samples are recorded if the IOC does not send any camonitor events. I think this is what you are referring to. There should be standard EPICS ways of making this happen from the IOC side; so this may be accomplished using those techniques.

Regards,
Murali




References:
Re: How to archive PVs regularly even if they are not updating Shankar, Murali via Tech-talk

Navigate by Date:
Prev: Re: How to archive PVs regularly even if they are not updating Shankar, Murali via Tech-talk
Next: 1D Histogram in Phoebus Florian Feldbauer 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  <20222023  2024 
Navigate by Thread:
Prev: Re: How to archive PVs regularly even if they are not updating Shankar, Murali via Tech-talk
Next: Re: How to archive PVs regularly even if they are not updating Ralph Lange 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  <20222023  2024 
ANJ, 26 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·