Experimental Physics and Industrial Control System
|
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
<2019>
2020
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
<2019>
2020
2021
2022
2023
2024
|
ANJ, 05 Dec 2019 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|