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: Record for a running sum
From: William Layne via Tech-talk <[email protected]>
To: Donny Domagoj Cosic <[email protected]>
Cc: [email protected]
Date: Thu, 5 Dec 2019 15:52:21 -0500
I can think of two ways to do it passively. Both end up using a calc record. I'll post below a real quick snippet that uses a channel access link to passively sum changes to a record. Or, you can have the record you care about forward link to the calc record. 

record(calc, "$(PV)_SUM")
{
    field(DESC, "Running sum of $(PV)")
    field(CALC, "VAL+A")
    field(INPA, "$(PV) CP")
}

On Thu, Dec 5, 2019, 9:20 AM Donny Domagoj Cosic via Tech-talk <[email protected]> wrote:
Hello,

I developed an IOC for the radiation monitors found throughout our
laboratory. Through this IOC I am able to read in the values of each
probe and display them nicely using CS-Studio. However I would like to
add the ability to the IOC to keep a running sum so I can calculate the
cumulative monthly and yearly doses throughout the laboratory but I am
not sure how to implement this. I tried searching for similar projects
of examples, but without any luck. Would you be able to provide me with
some pointers onto how to implement such a feature?

Regards,
Donny

--
Donny Domagoj Cosic
  Institut Ruđer Bošković, Bijenička cesta 54, 10000 Zagreb, Croatia

References:
Record for a running sum Donny Domagoj Cosic via Tech-talk

Navigate by Date:
Prev: Record for a running sum Donny Domagoj Cosic via Tech-talk
Next: Re: Record for a running sum Hu, Yong 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: Record for a running sum Donny Domagoj Cosic via Tech-talk
Next: Re: Record for a running sum Hu, Yong 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, 05 Dec 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·