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

Subject: Multiple patterns/ .sub files for the same .db file
From: Tito Körner <[email protected]>
To: [email protected]
Date: Tue, 10 Sep 2013 19:06:11 +0200
Hello,

I have .sub file looking like this:

file "hvtest.db"
{
    pattern {PROTO, P, BOXNO, LEVELNO, CHANNELNO, ELEMENTNO}
        {hvtest.proto, HV, 19, 0, 0, 0}
        {hvtest.proto, HV, 19, 0, 1, 1}
}

Now I would need another pattern in the same .db file looking like this:

file "hvtest.db"
{
   pattern {EELO, EEUP}
        {dhcp, DHCP}
        {ip, IP}
}

I tried two dbLoadTemplate - lines in my .cmd file

dbLoadTemplate "a.sub"
dbLoadTemplate "b.sub"

but I then got Error messages saying the substitutions from the first file are undefined. I also tried to put both patterns in one file (I found examples with different patterns for different .db files). But then again I get error messages saying the substitutions are undefined. When I directly append the second pattern after the first, I get a syntax error message. So how can this be done?

Regards,
Tito
       

Replies:
Re: Multiple patterns/ .sub files for the same .db file Andrew Johnson
RE: Multiple patterns/ .sub files for the same .db file Emmanuel Mayssat

Navigate by Date:
Prev: RE: motor record: soft motor & DMOV Mark Rivers
Next: Re: Multiple patterns/ .sub files for the same .db file Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: race condition with calcout & CA input links? Andrew Johnson
Next: Re: Multiple patterns/ .sub files for the same .db file Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·