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  <20092010  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  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: dbLoadTemplate and includes
From: "Mark Rivers" <[email protected]>
To: "Emmanuel Mayssat" <[email protected]>, "epics" <[email protected]>
Date: Thu, 2 Apr 2009 16:39:06 -0500
Hi,
 
You may already know this, but a subsitutions file can reference multiple template files, e.g.
 
corvette:1-5beta/iocBoot/iocFirewire>cat firewire.substitutions
file "$(AREA_DETECTOR)/ADApp/Db/firewireFeature.template" 
{ 
pattern
{     P,     R,   PORT,     FEATURE,     N, PINI, PINI_ABS, DESC}
{13FW1:, cam1:,    FW1,  BRIGHTNESS,     0,  YES,       NO, "Brightness"}
{13FW1:, cam1:,    FW1,    EXPOSURE,     1,  YES,       NO, "Exposure"}
{13FW1:, cam1:,    FW1,   SHARPNESS,     2,   NO,       NO, "Sharpness"}
{13FW1:, cam1:,    FW1,      WHITEB,     3,  YES,       NO, "White balance"}
{13FW1:, cam1:,    FW1,         HUE,     4,  YES,       NO, "Hue"}
{13FW1:, cam1:,    FW1,  SATURATION,     5,   NO,       NO, "Saturation"}
{13FW1:, cam1:,    FW1,       GAMMA,     6,   NO,       NO, "Gamma"}
{13FW1:, cam1:,    FW1,     SHUTTER,     7,   NO,      YES, "Shutter time"}
{13FW1:, cam1:,    FW1,        GAIN,     8,  YES,       NO, "Gain"}
{13FW1:, cam1:,    FW1,        IRIS,     9,   NO,       NO, "Iris"}
{13FW1:, cam1:,    FW1,       FOCUS,    10,   NO,       NO, "Focus"}
{13FW1:, cam1:,    FW1,        TEMP,    11,   NO,       NO, "Temperature"}
{13FW1:, cam1:,    FW1,     TRIGGER,    12,   NO,       NO, "Trigger"}
{13FW1:, cam1:,    FW1,     TRIGDLY,    13,   NO,       NO, "Trigger delay"}
{13FW1:, cam1:,    FW1,      WHITES,    14,   NO,       NO, "White shading"}
{13FW1:, cam1:,    FW1,   FRAMERATE,    15,   NO,       NO, "Frame rate"}
{13FW1:, cam1:,    FW1,        ZOOM,    16,   NO,       NO, "Zoom"}
{13FW1:, cam1:,    FW1,         PAN,    17,  YES,       NO, "Pan"}
{13FW1:, cam1:,    FW1,        TILT,    18,  YES,       NO, "Tilt"}
{13FW1:, cam1:,    FW1,      FILTER,    19,  YES,       NO, "Optical filter"}
{13FW1:, cam1:,    FW1,    CAPTSIZE,    20,   NO,       NO, "Capture size"}
{13FW1:, cam1:,    FW1,     QUALITY,    21,   NO,       NO, "Capture quality"}
}
file "$(AREA_DETECTOR)/ADApp/Db/firewireWhiteBalance.template" 
{ 
pattern
{     P,     R,   PORT,     FEATURE,     N, PINI, PINI_ABS, DESC}
{13FW1:, cam1:,    FW1,      WHITEB,     3,  YES,       NO, "White balance"}
}
file "$(AREA_DETECTOR)/ADApp/Db/firewireVideoModes.template" 
{ 
pattern
{     P,     R,   PORT,    N}
{13FW1:, cam1:,    FW1,  0}
{13FW1:, cam1:,    FW1,  1}
{13FW1:, cam1:,    FW1,  2}
{13FW1:, cam1:,    FW1,  3}
{13FW1:, cam1:,    FW1,  4}
{13FW1:, cam1:,    FW1,  5}
{13FW1:, cam1:,    FW1,  6}
{13FW1:, cam1:,    FW1,  7}
}

file "$(AREA_DETECTOR)/ADApp/Db/firewireColorCodes.template" 
{ 
pattern
{     P,     R,   PORT,    N}
{13FW1:, cam1:,    FW1,  0}
{13FW1:, cam1:,    FW1,  1}
{13FW1:, cam1:,    FW1,  2}
{13FW1:, cam1:,    FW1,  3}
{13FW1:, cam1:,    FW1,  4}
{13FW1:, cam1:,    FW1,  5}
{13FW1:, cam1:,    FW1,  6}
{13FW1:, cam1:,    FW1,  7}
{13FW1:, cam1:,    FW1,  8}
{13FW1:, cam1:,    FW1,  9}
{13FW1:, cam1:,    FW1, 10}
}
Obviously that substitutions file can be loaded with a single dbLoadTemplate command.  This may be good enough?
 
Mark
 
 

________________________________

From: [email protected] on behalf of Emmanuel Mayssat
Sent: Thu 4/2/2009 4:23 PM
To: epics
Subject: dbLoadTemplate and includes



Hello all,

I have several substitution files, which I could load with a series of
dbLoadTemplate. Is there a way to have only one dbLoadTemplate hand have
a substitution file such as follow:

cat master_substitution_file<<EOT
include substitution_file_1
include substitution_file_2
include substitution_file_3
EOT

and in stcmd

dbLoadTemplate("$PATH/master_substitution_file")

Well, this doesn't seem to work.
is there a way to include dbTemplate/substitution together?


Regards,
--
Emmanuel





References:
dbLoadTemplate and includes Emmanuel Mayssat

Navigate by Date:
Prev: dbLoadTemplate and includes Emmanuel Mayssat
Next: Re: dbLoadTemplate and includes J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: dbLoadTemplate and includes Emmanuel Mayssat
Next: Re: dbLoadTemplate and includes J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·