EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: dbLoadRecord of dbLoadTemplate
From: Emmanuel Mayssat <[email protected]>
To: epics <[email protected]>
Date: Wed, 11 Jul 2007 19:47:06 -0700
All, 
Most of you must be familiar with dbLoadRecord and dbLoadTemplate.
I like the first one because you can pass parameters which are not
necessarily hard coded (i.e. you can use the same db file for different
instances).

epicsEnvSet(DEVN,"toto")
dbLoadRecord(file.db,"deviceName=$(DEVN)")

I like the dbLoadTemplate because of the clarity, but then for each
device instantiation you need to create a complete substitution file.

Is there a way to do something like this:
dbLoadTemplate(file.sub,"deviceName=$(DEVN)")
Where the db files is generated and then parsed once again with macro
provided in command line?

-- 
Emmanuel Mayssat
Cell: 650/793-0626
Lyncean Technologies, Inc.


Replies:
Re: dbLoadRecord or dbLoadTemplate Ralph Lange

Navigate by Date:
Prev: Re: error code mapping best practice Maren Purves
Next: Ethernet client library Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Job Opennings at NSLS II bdalesio1
Next: Re: dbLoadRecord or dbLoadTemplate Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·