EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Creating a database record
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: "Dudley, David" <dudleyd at frib.msu.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 3 Feb 2022 12:22:56 -0800
On 2/3/22 12:01, Dudley, David via Tech-talk wrote:
O.K., you gurus of the EPICS ether (I already miss Marty!), got a question for you.

Is it possible from with a device driver that before iocInit (or during some part of it) to programmatically build a database record for use in EPICS?

For instance, I’d like my device driver to have a few records available over CA regarding its performance and statistics.  I know I can create a AI for instance, and then a dedicated DB that references that tag (along with a few others…), but it just seemed a more definite direction if I could have the driver actually programmatically build and install the appropriate entries.

How would your driver compute the record names?

I often have record for driver/device "health" information, including
performance counters and stats.  I usually either require a separate
.db template to be loaded (with names provided), or append these with
the other device information (duplicated if need be).

You might also make sure of the fact that one .db file can include
another.

https://github.com/areaDetector/ADCore/blob/98f1a82e34d5cc3b5094c0ab102eb30d30b5be16/ADApp/Db/ADBase.template#L11


nI know – I know – I’m crazy, but just trying to do thing “… down a different path”.

*David Dudley*

Controls Engineer III

*Facility for Rare Isotope Beams*

Michigan State University

640 South Shaw Lane

East Lansing, MI 48824-1321, USA

Tel. 517-908-7133

Email: dudleyd at frib.msu.edu <mailto:dudleyd at frib.msu.edu>

**

	

*cid:[email protected]*



References:
Creating a database record Dudley, David via Tech-talk

Navigate by Date:
Prev: Creating a database record Dudley, David via Tech-talk
Next: Re: [EXTERNAL] A Tribute to our Colleague Marty Kraimer Tang, Johnny via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: Creating a database record Dudley, David via Tech-talk
Next: Re: Creating a database record Ralph Lange via Tech-talk
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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·