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  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: adding a prefix to all PV names with macro substitution
From: Martin Konrad <konrad@ikp.tu-darmstadt.de>
To: tech-talk@aps.anl.gov
Date: Fri, 01 Jun 2012 23:44:35 +0200
Hi all,
I want to add a prefix to all PV names on my IOC. I definitely want a
central place where this prefix can be changed (e.g. defined in st.cmd).
Although this is easy to accomplish with dbLoadRecords and macro
substitution, it seems to be much more difficult if records are loaded
with dbLoadTemplate (because dbLoadTemplate does not support macro
substitution in template files). I found a thread about using multiple
levels of substitution
(http://www.aps.anl.gov/epics/tech-talk/2008/msg00014.php) but I still
cannot believe that such an easy thing could be that complicated...

I also read about host side macro expansion
(http://www.aps.anl.gov/epics/tech-talk/2007/msg00689.php) but didn't
find out how to use that. Can someone please give me a hint?

Any other ideas how to add a prefix are greatly appreciated, too.

Cheers

Martin

-- 
Dipl. Phys. Martin Konrad
Technische Universität Darmstadt
Institut für Kernphysik
Schlossgartenstr. 9
64289 Darmstadt
Tel.: +49-6151-16-5121
Fax: +49-6151-16-4321

Replies:
Re: adding a prefix to all PV names with macro substitution Tim Mooney

Navigate by Date:
Prev: Re: mbbi/mbbo Mask values Andrew Johnson
Next: Re: Proposed change in asyn - request for comments Bruce Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: mbbi/mbbo Mask values Ralph Lange
Next: Re: adding a prefix to all PV names with macro substitution Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·