That sounds like a good idea. I'll try to do it for the next release. I don't think it should be hard.
I'll also look into making available the number of buffer and memory in the pool, assuming a driver/plugin has established a limit on those.
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of Emma Shepherd [[email protected]]
Sent: Wednesday, August 08, 2012 10:52 PM
To: [email protected]
Subject: Remaining free buffers in an AD plugin queue
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
- References:
- Remaining free buffers in an AD plugin queue Emma Shepherd
- Navigate by Date:
- Prev:
Remaining free buffers in an AD plugin queue Emma Shepherd
- Next:
Re: EPICS build on armv6l Metin Aydar
- 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:
Remaining free buffers in an AD plugin queue Emma Shepherd
- Next:
Installing MEDM on UBUNTU 10.04 LTS nalaka samarasinghe
- 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
|