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  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation, using Autosave module of synApps??
From: Kuldeep Joshi via Tech-talk <tech-talk at aps.anl.gov>
To: "Kasemir, Kay" <kasemirk at ornl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 29 Jul 2021 12:36:22 +0000
>Correct, if you create some makeArchiveConfigFile("/path/to/config.xml") tool for the >IOC, you could use the info field support code in EPICS base to get the information, >invoke it in st.cmd, so after each IOC reboot you'd have an archive config file for the >IOC.

Cool, I guess if we restrict to only generating the .req file, this way the solution will be quite nifty. Adding the xml generation library to it will make it bulky.

I suggest a two stage solution, the makeArchiveConfigFile will make a .req file. Each line of this .req file will contain all the necessary archive information per PV. This file can subsequently be parsed using a python app for generating a CSS archive compatible xml config file.

We can extend the AutosaveFileFromDbInfo function and request the maintainer if this can be a standard feature of autosave.

It will help if you can suggest names and the parameters that we may require from the info field.

Regards,
Kuldeep


On Wed, Jul 28, 2021 at 12:33 PM Kasemir, Kay <kasemirk at ornl.gov> wrote:
> I wonder if leveraging the function makeAutosaveFileFromDbInfo from the autosave module is used, one may not have to worry about macro substitution.

Correct, if you create some makeArchiveConfigFile("/path/to/config.xml") tool for the IOC, you could use the info field support code in EPICS base to get the information, invoke it in st.cmd, so after each IOC reboot you'd have an archive config file for the IOC.
At the time we were looking for a tool that runs on the host, at the time you "make" the IOC software. But you can't archive anything unless the IOC is running, so requiring the IOC to start first is actually somewhat logical.

-Kay

Replies:
Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation, using Autosave module of synApps?? Ralph Lange via Tech-talk
Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation, using Autosave module of synApps?? Kasemir, Kay via Tech-talk
References:
Phoebus Archive xml config file: Automate generation. Kuldeep Joshi via Tech-talk
Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation. Kasemir, Kay via Tech-talk
Phoebus Archive xml config file: Automate generation, using Autosave module of synApps?? Kuldeep Joshi via Tech-talk
Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation, using Autosave module of synApps?? Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: Stream device: Reading values from two almost identical input strings using I/O intr Ralph Lange via Tech-talk
Next: Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation, using Autosave module of synApps?? Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation, using Autosave module of synApps?? Kasemir, Kay via Tech-talk
Next: Re: [EXTERNAL] Phoebus Archive xml config file: Automate generation, using Autosave module of synApps?? Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 29 Jul 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·