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: Re: archiver tools macro support
From: Jack <[email protected]>
To: Capobianco Roberto <[email protected]>
Cc: [email protected]
Date: Fri, 10 May 2013 08:33:16 +0200
Hi,
you should use a script to setup the engine configuration.xml

Hope this helps,
-Mauro

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mauro Giacchini

Istituto Nazionale di Fisica Nucleare - Laboratori Nazionali di Legnaro
V.le dell'Universita', 2
35020 LEGNARO (PD) - ITALY
Tel./Fax. +39.049.8068558


EPICS _at_ LNL http://www.lnl.infn.it/~epics/

...the first EPICS installation to the project SPES realized from the
scratch in ITALY is in production since begin 2010!!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On 5/9/2013 5:51 PM, Capobianco Roberto wrote:
Hi all,

I have created, as template, a simple application to check some signals in a cubicle (doors, fans, power, temperature etc.) Using macro substitution, I have created several identical applications, one for each cubicle to control. Now I want to enable persistance and archiving on some PVs (I would like to do this in the template not by hand in the applications). And this is the problem: persistance supports macro substitution but what about archiver config tools and/or file ?


Just to clarify what I mean, these are examples record from the template:

record (bi,"$(CUBICLE_NAME):FAN")
{
    field(DTYP, "s7nodave")
    field(INP, "@CUBICLEM F1.2 bool")
    field(PINI, "YES")
    field(SCAN, "I/O Intr")
    field(ZNAM, "Fan OFF")
    field(ONAM, "Fan ON")
}

record (ao,"$(CUBICLE_NAME):WARNING_THRS_W")
{
    field(DTYP, "s7nodave")
    field(OUT, "@CUBICLEM DB1.DBD14 int32")
    field(LINR, "LINEAR")
    field(EGUF, "214748364.7")
    field(EGUL, "-214748364.8")
    field(EGU, "°C")
    field(HOPR, "35")
    field(LOPR, "20")
}

For the persistance I have something like this

$(CUBICLE_NAME):WARNING_THRS_W.VAL in my _IOC_.req file
and
create_monitor_set("_IOC_.req", 5, "CUBICLE_NAME=$(CUBICLE_NAME)") in my st.cmd

Can I create something like this for the _IOC_.xml archiver config file ?

<group >
<name >$(CUBICLE_NAME)</name>

<channel >
<name >$(CUBICLE_NAME):FAN</name>
<monitor ></monitor>
</channel>
</group>

Or I have to look at other solutions ?

Thanks. Robert



References:
archiver tools macro support Capobianco Roberto

Navigate by Date:
Prev: EDM Zenon Szalata
Next: epicsTimeGetEvent failed Geon-Yeong Mun
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: archiver tools macro support Bruce Hill
Next: SNC: evflags not available to escaped C Joe Sullivan
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 ·