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: archiver tools macro support
From: Capobianco Roberto <[email protected]>
To: [email protected]
Date: Thu, 09 May 2013 17:51:06 +0200
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


Replies:
Re: archiver tools macro support Tim Mooney
Re: archiver tools macro support Jack

Navigate by Date:
Prev: New version of STAR EPICS Virtual Machine Jiro Fujita
Next: Re: archiver tools macro support Tim Mooney
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: New version of STAR EPICS Virtual Machine Jiro Fujita
Next: Re: archiver tools macro support Tim Mooney
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 ·