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

Subject: Re: dbLoadTemplate issue in 3.14.9-11
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Wed, 27 Jan 2010 14:32:04 -0600
On Wednesday 27 January 2010 14:05:47 Emmanuel Mayssat wrote:
> msi is compiled and working for all of my epics base versions.

Ok.  What has that got to do with questions about dbLoadTemplates?

> But dbLoadTemplate directive doesn't work.

The two are not related, other than the fact that both make use of macLib from 
libCom internally.  That's probably about the only code they have in common.

> Do I need to change my CONFIG directory for msi?
> I remember doing this in the past...

Don't you keep the history of your application sources in CVS or some other 
version control system?  This shows you one good reason to do so...

> The error I get is :
>
> dbLoadTemplate("my.substitution")
> Error: syntax error
> Parsing 'dbl'
>    in path "." file my.substitution line 1
>
> dbl is on the first line of my sub file.

Why?  dbl is an st.cmd file command; it has nothing to do with the syntax that 
dbLoadTemplate() accepts.  It is looking for the keyword "file" followed by 
the name of a template file.  Section 6.20 of the AppDevGuide describes the 
formats it understands.

> I get one error for each of my instance of the template file.
> Note that if my sub file is empty I still get the same error (or almost,
> without the dbl).
> So the files are found, but the parsing is not working correctly.
>
> What am I doing wrong?

If you were meaning to expand your substitution files at build time you would 
use msi for that and give it a substitution file, using the same syntax that 
dbLoadTemplate() is looking for, and then you probably wouldn't use 
dbLoadTemplate() at all on the IOC.

- Andrew
-- 
The best FOSS code is written to be read by other humans -- Harald Welte


Replies:
Re: dbLoadTemplate issue in 3.14.9-11 Emmanuel Mayssat
References:
dbLoadTemplate issue in 3.14.9-11 Emmanuel Mayssat

Navigate by Date:
Prev: Re: dbLoadTemplate issue in 3.14.9-11 Ralph Lange
Next: Re: dbLoadTemplate issue in 3.14.9-11 Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: dbLoadTemplate issue in 3.14.9-11 Emmanuel Mayssat
Next: Re: dbLoadTemplate issue in 3.14.9-11 Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·