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: PV name change and autosave
From: Tim Mooney <[email protected]>
To: Emmanuel Mayssat <[email protected]>
Cc: [email protected]
Date: Fri, 7 Jun 2013 14:47:11 -0500 (CDT)
Hi Emmanuel,

For most of the databases I use, there is a corresponding autosave-request file, written by the author of the database.  I think the author is probably the entity best placed to determine which PVs need to be autosaved so that the database can reinitialize itself to the state it was in before the ioc reboot.  I would not trust dbgrep to choose autosave PVs.

Normally, I just include a line of the form
    file <request file> <macro definitions>
for each database whose PVs I want autosaved.

With this practice, an ioc configuration doesn't have to specify PVs at all, so doesn't have to react to PV-name changes.

By the way, there is code in synApps (makeAutosaveFiles.py) that will go through all of the .cmd and .substitution files in an ioc directory, find corresponding request files, if they exist, and write a request file for the ioc.  This software relies on a naming convention: for each mydatabase.db there is a mydatabase_settings.req.

Tim


From: "Emmanuel Mayssat" <[email protected]>
To: [email protected]
Sent: Friday, June 7, 2013 12:30:40 PM
Subject: PV name change and autosave

To be compliant with a naming convention, changing the name of a PV should be a "trivial" operation.
That is true particularly for PV that are not used in higher level software (seq, feedback, info chart, etc)
Let's focus just for a moment on autosave.

Can the req file, generate itself "automatically"?
dbgrep *O > myfile.req
could do the trick, if you naming convention appends "O" at the end of the output records.
Unfortunately redirection on dbgrep doesn't work since 3.14.10...
Do redirection on dbgrep work in 3.14.12.3+ ?

Of course the req file can be generated manually starting with dbl * > dblist.raw

How do you generate you req file after a simple PV name change?


--
Emmanuel



Replies:
RE: PV name change and autosave Emmanuel Mayssat
References:
PV name change and autosave Emmanuel Mayssat

Navigate by Date:
Prev: Re: PV name change and autosave Andrew Johnson
Next: RE: PV name change and autosave Emmanuel Mayssat
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: PV name change and autosave Andrew Johnson
Next: RE: PV name change and autosave Emmanuel Mayssat
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 ·