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

Subject: Re: Count record that resets by date
From: Daniel Cuneo via Tech-talk <tech-talk@aps.anl.gov>
To: Diego Omitto <diego.omitto@gmail.com>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 13 Mar 2019 17:44:41 -0400
Diego, would your idea allow me to aggregate the counter per day (or other period)?


On Wed, Mar 13, 2019 at 2:34 PM Diego Omitto <diego.omitto@gmail.com> wrote:
Hi Daniel,
you could forward link to a scalcout record that increments a counter and gets the time from a stringout record with DTYP "Soft Timestamp".

On Wed, Mar 13, 2019 at 5:08 PM Maren Purves via Tech-talk <tech-talk@aps.anl.gov> wrote:
I have something that needs to be reset on a daily basis and use a
cron job that runs cau with an input file.
Not the most elegant solution, but it works.

HTH,
Maren Purves, EAO

On Wed, Mar 13, 2019 at 11:02 AM Daniel Cuneo via Tech-talk
<tech-talk@aps.anl.gov> 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

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

Navigate by Date:
Prev: Re: Count record that resets by date Diego Omitto via Tech-talk
Next: Fw: Count record that resets by date Mooney, Tim M. 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 
Navigate by Thread:
Prev: Re: Count record that resets by date Diego Omitto via Tech-talk
Next: Re: Count record that resets by date Diego Omitto 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 
ANJ, 13 Mar 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·