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  <20192020  2021  2022  2023  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Count record that resets by date
From: Matt Newville via Tech-talk <[email protected]>
To: Daniel Cuneo <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 14 Mar 2019 06:31:57 -0500
Daniel,


On Wed, Mar 13, 2019 at 4:02 PM Daniel Cuneo via Tech-talk <[email protected]> wrote:
Hi all,
I'd like to create a database record that counts based on a forward link. This record would need to reset back to zero 
at 12AM every day. 

Use case, is where a beam line user hits a reset button repeatably (tied to a bo record) as a work around for something that is broken.
I'd like to track these resets.

Is there a way to do this with base?
I'm considering writing a C subroutine for this is it doesn't already exist.

Cheers!
dpc

If the use-case is to track resets of a bo record, why not use a script that sets up a monitor on the bo record and writes the value and timestamp of each event to a file?  Or you could add the bo record to whatever archiver you're using and extract the events from that.   Either way, such an event log would let you can slice the event data any way you want (not just "per day") and you haven't erased the information every day at midnight. 

--Matt Newville 


Replies:
Re: Count record that resets by date Daniel Cuneo via Tech-talk
References:
Count record that resets by date Daniel Cuneo via Tech-talk

Navigate by Date:
Prev: Re: I'm looking for a pvacces example to read PVStructure Heinz Junkes via Tech-talk
Next: Re: Count record that resets by date Daniel Cuneo 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Count record that resets by date Daniel Cuneo via Tech-talk
Next: Re: Count record that resets by date Daniel Cuneo 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  <20192020  2021  2022  2023  2024 
ANJ, 14 Mar 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·