Hi Florian,
I'm not sure about Phoebus, but you could solve this on IOC level using
one acalcout record
(https://epics-modules.github.io/calc/aCalcoutRecord.html), and the
function SUM. This way you could have a new PV that will have the sum
you are looking for.
Cheers
Gabriel
On 7/17/23 09:13, Florian Feldbauer via Tech-talk wrote:
Hey all,
I have a short question on Phoebus:
I have an array PV of uint32's. Each element represents an error counter
for a single channel.
For an overview OPI of our system, I'd like to have a Text Entry widget
displaying the sum of all elements of our array for each device.
Looking at the Documentation [1] I see a lot of formulas in Phoebus for
arrays, but it seems none for calculating the sum of the elements.
I know it could be done via a script, but I was wondering if there is
also another way (e.g. formulas).
Cheers,
Florian
[1]
https://control-system-studio.readthedocs.io/en/latest/core/formula/doc/index.html
--
Gabriel Fedel
Embedded Software Developer / Integrated Control System Division
European Spallation Source ERIC
P.O. Box 176, SE-221 00 Lund, Sweden
Visiting address: Partikelgatan 2, 224 84 Lund
Mobile: +46 72 179 23 01
E-mail: gabriel.fedel at ess.eu
ess.eu
- References:
- Phoebus formulas Florian Feldbauer via Tech-talk
- Navigate by Date:
- Prev:
Fermilab: Software Developer Opening in Accelerator Controls Dennis J. Nicklaus via Tech-talk
- Next:
PHAS and PINI Mark Rivers 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:
Phoebus formulas Florian Feldbauer via Tech-talk
- Next:
Job opportunity: SKA-Low Software Controls Manager Guzman, JC 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
|