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  <20202021  2022  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Macro substitution for a filename
From: "Daykin, Evan via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 2 Apr 2020 18:56:12 +0000

Hello,

 

I was wondering if the following is possible:

 

##file1.db

 

record(ao, “test1”)

{

}

 

##file2.db

record(ao, “test2”)

{

}

 

##macro-filename.template

include “file$(FILENUMBER).db”

 

##top-level.template

substitute “FILENUMBER=1”

include macro-filename.template

 

I tried this pattern but received an error indicating file$(FILENUMBER).db couldn’t be opened, suggesting the macro is not expanded. Is this possible or should I look for errors in my naming/substitutions/Makefile?

 

Thank you and be well,

-Evan

 


Navigate by Date:
Prev: Re: EPICS7 roller-coaster Michael Davidsaver via Tech-talk
Next: Packages to build EPICS base, synApps, and areaDetector on Centos 8 Mark Rivers 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Consistently inconsistent behaviour when testing ADURL Mark Rivers via Tech-talk
Next: Packages to build EPICS base, synApps, and areaDetector on Centos 8 Mark Rivers 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  <20202021  2022  2023  2024 
ANJ, 02 Apr 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·