Hello AreaDetector experts,
I'm wondering if there is a way to find out at runtime how many free buffers a particular plugin has left in its queue. In our application, the file writing plugin cannot be blocking since the acquisition from the camera must not be held up, but at the same time I need to ensure that it does not drop any frames. What we would like to be able to do is time the start of each acquisition run so that the file plugin has caught up sufficiently, but without waiting any longer than absolutely necessary.
I know there is an ArrayCounter record in both ADBase.template and NDPluginBase.template, so in theory I think the (detector.ArrayCounter - plugin.ArrayCounter) = number of used buffers, assuming they were both reset at the same point. I guess I could put some logic in the database to check this, but to calculate how many are remaining it would have to know the queue size that was allocated to the plugin in the startup script. I thought it would be handy if the plugin driver could expose the number of free buffers as an asyn parameter instead.
I'd be glad to hear any thoughts on this, has anyone else tried to do something similar?
Thanks,
Emma
- Replies:
- RE: Remaining free buffers in an AD plugin queue Mark Rivers
- Navigate by Date:
- Prev:
Re: The communication between base3.14.8.2 and base3.13.8 Zhang Yuliang
- Next:
RE: Remaining free buffers in an AD plugin queue 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:
Re: The communication between base3.14.8.2 and base3.13.8 Andrew Johnson
- Next:
RE: Remaining free buffers in an AD plugin queue 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
|