Hi folks!
I’m having some trouble getting this substitution magic to work in my .db files. I think that when I run ‘make’ I should get some .db files, which should have all of the $(XxX) stuff replaced, based on the contents of the .substitutions
file, as long as the filenames match. However, I’m getting some things replaced, and others not. For example, I have the following in Watlow_PM_General.template:
{
field(INPA, "$(s):$(ta):$(ss):$(mod):ControlMode$(ch) CP")
And this in Watlow_PM_General.substitutions:
file Watlow_PM_General.template
{
pattern { s, ta, ss, mod, ch}
{ , SE, Watlow, 1, 1}
}
But when I compile, I get things like this in Watlow_PM_General.db:
{
field(INPA, "SE:Watlow:1:1:ControlMode$(ch) CP")
I haven’t been able to figure out why the ch macro is the only one not getting replaced. Full source is at:
https://github.com/gregoryleblanc/CsHeater
Any pointers greatly appreciated,
Greg
--
Gregory Leblanc
Accelerator Engineer
Edwards Accelerator Lab - Ohio University
123 University Terrace
Athens, OH 45701
leblanc at ohio.edu
M: (401) 52-OUAL1 or (401) 526-8251