Hi Steve,
What version of ADCore are you using? The way capture mode is handled was changed in R3-2. See the release notes:
https://github.com/areaDetector/ADCore/blob/master/RELEASE.md
In R3-2 I think it will do what you want, but previously it probably did not handle attributes correctly.
Is there a reason you are using capture mode rather than stream mode? I recommend using stream mode. Prior to R2-5 there was a reason to use Capture mode because the QueueSize for a plugin was fixed at iocInit and could not be changed a run-time. Since R2-5 the QueueSize for all plugins can be changed at run-time. It is generally better to set a large QueueSize and use stream mode rather than capture mode because:
- It always handles the attributes correctly, even prior to R3-2.
- File writing is overlapped with data collection so it reduces the total time for the experiment
- The memory overhead is less because it only needs to buffer the frames it cannot keep up with writing to disk, rather than buffering all frames in memory.
Capture mode may be deprecated in a future release of ADCore because it complicates the code and offers no real advantages any more.
Mark
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Steve Kinder - UKRI STFC
Sent: Tuesday, May 1, 2018 12:08 PM
To: [email protected]
Subject: NDPluginFile attribute saving
I have an areaDetector file plugin saving a specific HDF5 structure with multiple images in one file. I set attributes to be saved per image via NDAttributesFile. I'm currently using capture mode. At the moment each image seems to have the same parameter values; as at the point the file is written. Is there a way for the attribute values to be as they were at the point each image is collected? Maybe I missed something in creating the plugin, some other setting or the attributes XML file?
Thanks
Steve
- Replies:
- Re: NDPluginFile attribute saving Steve Kinder - UKRI STFC
- References:
- NDPluginFile attribute saving Steve Kinder - UKRI STFC
- Navigate by Date:
- Prev:
NDPluginFile attribute saving Steve Kinder - UKRI STFC
- Next:
Proposed changes in the synApps dxp module for XIA electronics Mark Rivers
- 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:
NDPluginFile attribute saving Steve Kinder - UKRI STFC
- Next:
Re: NDPluginFile attribute saving Steve Kinder - UKRI STFC
- 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
|