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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: [EXTERNAL] 1D Histogram in Phoebus |
From: | "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Florian Feldbauer <florian at ep1.ruhr-uni-bochum.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 28 Sep 2022 12:16:02 +0000 |
Hi:
> Is it also possible to introduce some sort of binning with the XY-Plot widget?
> (e.g. combining 2 or 4 values into 1 bar?)
You'd have to perform the binning on the IOC, for example using a histogram record. Note that in case you don't want to update the "real" IOC that has the raw data, you can place the histogram record (or whatever else you use) on a separate IOC.
The general idea for the display is that it's just the display. It shows data from PVs, and it allows operators to write to PVs. It should not "do" anything. It shouldn't perform automation or create new data, because then you run into issues when you launch zero or more than one instances of the display. Suddenly your automation is gone, or your various instances of the same display show different data because they were started at different times etc. If you perform your binning on an IOC, all displays will show the same histogram data. You can also fetch it via caget or from some python script to perform additional computations, again resting assured that
it's the same histogram data that you see on the display.
-Kay |