EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: found a bug in 3.13.9 dbLoadTemplate - after all that time
From: kuner <[email protected]>
To: [email protected]
Date: Tue, 01 Jun 2004 17:11:58 +0200
Hi,

Consider this templates:

test.template

 record(calc,"$(NAME):rdbk") {
       field(DESC,"calculation")
       field(SCAN,".5 second")
       field(CALC,"A")
       field(INPA,"$(NAME):rd .PP.NMS")
       field(HOPR,"$(HOPR)")
       field(LOPR,"$(LOPR)")
}

test.template

 record(ai,"$(NAME):$(SNAME):rd") {
     field(DESC,"position readback")
     field(HOPR,"$(HOPR)")
     field(LOPR,"$(LOPR)")
 }


and this substitution file:


file test.template {
 { NAME="X", HOPR="9", LOPR="1"}
}
file test1.template {
 { NAME="Y" }
}

Remark: The substittutions $HOPR and $LOPR are used in both files, but in the .substitution files it is forgotten for the second file, test1.template.

After the run of make dbloadTemplat will create:

record(calc,"X:rdbk") {
   field(DESC,"calculation")
   field(SCAN,".5 second")
   field(CALC,"A")
   field(INPA,"X:rd .PP.NMS")
   field(HOPR,"9")
   field(LOPR,"1")
}
record(ai,"Y:$(SNAME):rd") {
   field(DESC,"position readback")
   field(HOPR,"9")
   field(LOPR,"1")
}

HOPR and LOPR will be set in both records, so the last defined value from the former substituted file will be used for the actual file.
This is not correct.


Grüssle Bernhard

PS: the work I did when I found this was not such an easy EPICS database.

--
-------------------------------------------------------------------
-- [email protected] ----------- Bessy Gmbh -----------------
-- +49 30 6392 4981 ------------------ Albert Einstein Strasse 15 -
-------------------------------------- 12489 Berlin ---------------


Replies:
Re: found a bug in 3.13.9 dbLoadTemplate - after all that time Marty Kraimer
Re: found a bug in 3.13.9 dbLoadTemplate - after all that time Andrew Johnson

Navigate by Date:
Prev: help building StripTool and caSnooper under EPICS R3.14.6 Kevin Tsubota
Next: Re: found a bug in 3.13.9 dbLoadTemplate - after all that time Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: help building StripTool and caSnooper under EPICS R3.14.6 Kevin Tsubota
Next: Re: found a bug in 3.13.9 dbLoadTemplate - after all that time Marty Kraimer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·