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  2016  2017  2018  2019  2020  <20212022  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  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Trouble with macro substitutions
From: "Leblanc, Gregory via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 23 Aug 2021 15:24:06 +0000

Hi folks!

 

I’m having some trouble getting this substitution magic to work in my .db files.  I think that when I run ‘make’ I should get some .db files, which should have all of the $(XxX) stuff replaced, based on the contents of the .substitutions file, as long as the filenames match.  However, I’m getting some things replaced, and others not.  For example, I have the following in Watlow_PM_General.template:

 

{

        field(INPA,     "$(s):$(ta):$(ss):$(mod):ControlMode$(ch) CP")

 

And this in Watlow_PM_General.substitutions:

 

file Watlow_PM_General.template

{

pattern {  s, ta,      ss, mod, ch}

        {   , SE,  Watlow,   1,  1}

}

 

But when I compile, I get things like this in Watlow_PM_General.db:

 

{

        field(INPA,     "SE:Watlow:1:1:ControlMode$(ch) CP")

 

I haven’t been able to figure out why the ch macro is the only one not getting replaced.  Full source is at: https://github.com/gregoryleblanc/CsHeater

 

Any pointers greatly appreciated,

     Greg

 

--

Gregory Leblanc

Accelerator Engineer

Edwards Accelerator Lab - Ohio University

123 University Terrace

Athens, OH 45701

leblanc at ohio.edu

M: (401) 52-OUAL1 or (401) 526-8251

 


Replies:
Re: [EXTERNAL] Trouble with macro substitutions Hartman, Steven via Tech-talk
Re: Trouble with macro substitutions Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Re: RE: Question about retrieve history data in archiver appliance lzfneu at live.com via Tech-talk
Next: Re: [EXTERNAL] Trouble with macro substitutions Hartman, Steven via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Changing setter PVs with asyn and AreaDetector Mark Rivers via Tech-talk
Next: Re: [EXTERNAL] Trouble with macro substitutions Hartman, Steven via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 23 Aug 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·