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  <20132014  2015  2016  2017  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Substitutions defaults and tricks
From: Emmanuel Mayssat <[email protected]>
To: "Brown, Garth" <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 20 Nov 2013 10:29:01 -0800

> And I get $(TS1ST=2), the desired SYS1 default value.
> That may be a useful trick, but it's not quite what I want. The file my example is based on has lots more in the pattern line, and many more lines. To simplify maintenance and reduce errors for all the installations where we want to take the per-environment defaults, I want a way for users to just define SYS in one place, preferably a macro in dbLoadRecords. That would let you cut and paste one st.cmd line into new systems, while maintaining per-environment defaults centrally. Does anyone have a way to do that, or good alternatives for this type of problem?

Another solution I occasionally use is "database overwrite"

dbLoadRecords(my_default_database.db, recordPrefix=FOO)
dbLoadRecords(overwrite_default_database.db, recordPrefix=FOO, fieldValue=TOTO)
iocInit

The second db file overwrites (or *complement/complete) the configuration in the first db file.
Beware records types and names need to be the same, so this method is more appropriate to change the values of fields

Regards,

--
Emmanuel



References:
Substitutions defaults and tricks Brown, Garth

Navigate by Date:
Prev: Re: How to archive PVs in epics which are deployed in labview Pete Jemian
Next: Re: areaDetector for a Basler GigE camera Florian Sorgenfrei
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Substitutions defaults and tricks Emmanuel Mayssat
Next: Re: The results of your email commands Julio Calvo
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·