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  <20122013  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  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: adding a prefix to all PV names with macro substitution
From: Tim Mooney <[email protected]>
To: Martin Konrad <[email protected]>
Cc: [email protected]
Date: Fri, 1 Jun 2012 18:34:54 -0500 (CDT)
Martin,

Host-side macro expansion can be done by 'msi':
http://www.aps.anl.gov/epics/extensions/msi/index.php
I agree that it would be nice to be able to pass a macro-defnintion string to dbLoadTemplate.

Tim

----- Original Message -----
From: "Martin Konrad" <[email protected]>
To: [email protected]
Sent: Friday, June 1, 2012 4:44:35 PM
Subject: adding a prefix to all PV names with macro substitution

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

-- 
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


Replies:
Re: adding a prefix to all PV names with macro substitution Andrew Johnson
References:
adding a prefix to all PV names with macro substitution Martin Konrad

Navigate by Date:
Prev: Re: Proposed change in asyn - request for comments Bruce Hill
Next: Re: adding a prefix to all PV names with macro substitution Andrew Johnson
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  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: adding a prefix to all PV names with macro substitution Martin Konrad
Next: Re: adding a prefix to all PV names with macro substitution Andrew Johnson
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  2020  2021  2022  2023  2024 
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 ·