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  <20162017  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: .template and .db files
From: Mark Rivers <[email protected]>
To: "'Phil Atkin'" <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 6 Jan 2016 17:07:39 +0000

Hi Phil,

 

  • To add my 'new' parameters/PVs, do I only need to create a new .template file and then do dbLoadRecords... for that file during the IOC startup sequence?  (I.e. am I correct that I do not need to change the equivalent of simDetectorApp.dbd, which is very long but doesn't seem to contain anything specific to the ADExample camera?).

You are correct that you just need to create a new .template file.  The equivalent of simDetectorApp.dbd will be created for you automatically by the build system.  It contains the definitions of all records in your application, the symbols for all device and driver support, etc.

  • Am I also correct that, the database aspects of the 'new' parameters/PVs are not involved in the build process?  (Conversely, the simDetectorApp.dbd analog is involved).

Yes, that is correct.  As I said above the simDetectorApp.dbd file is created for you based on simDetectorSupport.dbd and commonDriverMakefile.

  • What is the difference between a .dbd file and a .template file?

As a simplification, the .dbd file contains the definitions of the records, the .template file contains the values for specified record fields.

 

Mark

 

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Phil Atkin
Sent: Wednesday, January 06, 2016 11:00 AM
To: [email protected]
Subject: .template and .db files

 

I'm developing an areaDetector driver and IOC.  The code and folder structure is based on ADExample.

In addition to the 'standard' parameters/PVs associated with an areaDetector IOC, I need some additional parameters/PVs that are specific to my camera etc.  I also need to 'override' some of the standard definitions (due to limited data type support, no colour support etc.).

Questions:

  • To add my 'new' parameters/PVs, do I only need to create a new .template file and then do dbLoadRecords... for that file during the IOC startup sequence?  (I.e. am I correct that I do not need to change the equivalent of simDetectorApp.dbd, which is very long but doesn't seem to contain anything specific to the ADExample camera?).
  • Am I also correct that, the database aspects of the 'new' parameters/PVs are not involved in the build process?  (Conversely, the simDetectorApp.dbd analog is involved).
  • What is the difference between a .dbd file and a .template file?

Thanks,

Phil

--
Pixel Analytics is a limited company registered in England. Company number: 7747526; Registered office: 93A New Road, Haslingfield, Cambridge CB23 1LP


Replies:
Re: .template and .db files Phil Atkin
References:
.template and .db files Phil Atkin

Navigate by Date:
Prev: .template and .db files Phil Atkin
Next: Re: .template and .db files Phil Atkin
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: .template and .db files Phil Atkin
Next: Re: .template and .db files Phil Atkin
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·