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: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Fri, 4 Feb 2022 09:48:27 +0100
On Thu, 3 Feb 2022 at 21:01, Dudley, David via Tech-talk <tech-talk at aps.anl.gov> wrote:

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?


I know of a driver that does that, yes.
In the initialization of the driver (started by calls from the startup script) they detect the hardware and create a matching DB file in '/tmp', then load that file. Works fine.

I don't like that for a production system for multiple reasons. Having no or little control over which records an IOC loads.... Broken cards that would just disappear from the name space with no trace....
But I see the advantage for plug-and-play lab use.

If you don't hard code the records into the driver code, but maybe blow up from templates that are part of your application, you would give the user at least some control.

Cheers,
~Ralph


 

Replies:
Re: [EXTERNAL] Creating a database record Vodopivec, Klemen via Tech-talk
RE: Creating a database record Dudley, David via Tech-talk
References:
Creating a database record Dudley, David via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] A Tribute to our Colleague Marty Kraimer Tang, Johnny via Tech-talk
Next: Potentiostat EPICS driver (EC301 / SP-300) Nilson Pereira 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: Re: Creating a database record Michael Davidsaver via Tech-talk
Next: Re: [EXTERNAL] Creating a database record Vodopivec, Klemen 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 ·