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: Quickly Connecting EPICS iocsh variables to records |
From: | Matt Rippa via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Johnson, Andrew N." <anj at anl.gov> |
Cc: | EPICS tech-talk <tech-talk at aps.anl.gov> |
Date: | Wed, 8 Dec 2021 13:19:53 -1000 |
Hi Matt,
On Dec 8, 2021, at 3:02 PM, Matt Rippa via Tech-talk <tech-talk at aps.anl.gov> wrote:
What's the easiest way to connect "variable(foo, int)" lines in my dbd file to epics records?I have many such variables throughout my code for debugging using epicsExportAddress(int, foo) in my C code.
The code from the devSymb device support could probably be modified to make those variables available, but you’d have to replace the symbol lookup code with calls to epicsFindSymbol() (declared in epicsFindSymbol.h). I think I was originally planning to change that module to use the registered variables (possibly in addition to using epicsFindSymbol) but I never got around to actually doing that.
- Andrew
--Complexity comes for free, simplicity you have to work for.