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  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: Using NDPluginGather to collect NDArrays from multiple detectors?
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Jörn Dreyer <j.dreyer at hzdr.de>
Date: Wed, 19 Feb 2025 16:35:20 +0000
Hi Jörn,

In principle NDPluginGather can do what you are asking.  There are 2 restrictions:

  1. All of the detectors must be running in the same IOC, i.e. the same process.
  2. All of the detectors must be producing NDArrays with the same dimensions, data type, and attributes.
The second restriction is due to the way the HDF5 plugin works.  In Stream mode it saves a single dataset of dimensions [Nx, Ny, Nimages].  The datatype of that dataset and also the attribute datasets are determined by the first array it receives.  All subsequent arrays must be the same.  If not, you should see an error at the IOC shell and on the OPI screen.

If your setup meets these restrictions and you are still having problems, then please send screenshots of the Gather and HDF5 plugin screens.

Mark
 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
Sent: Wednesday, February 19, 2025 2:21 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Using NDPluginGather to collect NDArrays from multiple detectors?
 
Hi,

I would like to write the images from multiple detectors into a single file.
Therefor I tried to setup an NDPluginGather and connected the Array ports to the asynArray's of the detectors.
The output of this was connected to an NDPluginFileHDF5. But in the resulting HDF5 file was only one image.

I gues I misunderstood the functionality of NDPluginGather.
Looking at the documentation it seems as if it seems that it can only collect data from Plugins (Attributes).

Is there a way to achieve that, or do I have to live with one file per detector?

Regards

Jörn



References:
Using NDPluginGather to collect NDArrays from multiple detectors? Jörn Dreyer via Tech-talk

Navigate by Date:
Prev: Re: Calc record with two CP input links ending up in inconsistent state Érico Nogueira Rolim via Tech-talk
Next: Make waveform from ai record Abdalla Ahmad 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  <2025
Navigate by Thread:
Prev: Using NDPluginGather to collect NDArrays from multiple detectors? Jörn Dreyer via Tech-talk
Next: Re: Using NDPluginGather to collect NDArrays from multiple detectors? 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  <2025
ANJ, 25 Feb 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·