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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Set/get enum value of mbbo from within AD driver |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Gofron, Kazimierz" <kgofron at bnl.gov> |
Cc: | tech-talk <tech-talk at aps.anl.gov> |
Date: | Wed, 6 Jul 2022 20:13:52 +0000 |
Hi Kaz, Ø
Is there a way to set/get enum string value of mbbo/mbbi record from within areaDetector driver? I want to be clear about what you are asking. Are you asking whether an areaDetector driver can
1)
Select the mbbi value using a string (rather than a number)? or 2)
Change the string and/or integer value associated with a particular enum index? It is not currently possible to do 1), you can only select by number, not by string. It is possible to do 2). That is done with the asynEnum interface. You implement methods that override one or more of these asynPortDriver methods: -
readEnum -
writeEnum -
doCallbacksEnum This is used in many areaDetector drivers so that they can populate the enum strings and values with appropriate values for a particular detector model. These are some of the drivers that implement readEnum() to set enum strings and values: -
andor3.cpp -
andorCCD.cpp -
ADGenICam.cpp -
GenICamFeature.cpp -
arvFeature.cpp -
ADVimba.cpp -
VimbaFeature.cpp Mark From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Gofron, Kazimierz via Tech-talk Hi all, Is there a way to set/get enum string value of mbbo/mbbi record from within areaDetector driver? I can set/get Enum values using caput/caget, but setIntegerParam()/getIntegerParam() which are appropriate for mbbo/mbbi are not appropriate for enum, and setStringParam()/getStrinParam
are not compatible with mbbo/mbbi type. Also mbbo/mbbi do not have SVAL field, that sCalcoutRecord has. Thanks,
|