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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | How to handle adjusting values as they change independent of the driver in an asynPortDriver? |
From: | "Wlodek, Jakub via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 2 Sep 2020 13:39:02 +0000 |
Hi all,
I had a question about best practices for writing an asynPortDriver or more specifically an areaDetector driver.
The cameras I am writing support for allow for auto-gain and auto-exposure modes, that adjust the gain and exposure
internally based on the recieved image. At the moment, I show this updating in my screens by in the main image processing
thread loop grabbing the pv value for auto-gain and auto-exposure, and if either is on, I ping the camera for the current value
an update the value in the parameter library and run callParamCallbacks.
Would this be a "best practices" solution, or is there a better way to do this? I was thinking maybe something could be
done with EPICS record SCAN fields, or maybe the readInt32 method.
Thanks,
Jakub
|