Hi Jörn,
In principle NDPluginGather can do what you are asking. There are 2 restrictions:
-
All of the detectors must be running in the same IOC, i.e. the same process.
-
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
|