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: Save and Restore parameters
From: Tim Mooney <[email protected]>
To: Julio Calvo <[email protected]>
Cc: [email protected]
Date: Mon, 11 Mar 2013 14:16:53 -0500 (CDT)
Julio,
Autosave may be able to do what you want.  If the list of PVs to be saved will not normally change between ioc reboots, it would be convenient to use autosave's "create_triggered_set()" command in an ioc-startup command file.

If you do this, autosave will save listed PVs to a file whenever a "trigger" PV is posted.  This may not be what you want.  If you want autosave to save only if when a specified PV takes on a certain value, you could write a database that would accomplish that.  (I think I would start with a calcout record, and use it's OOPT and OUT fields to write conditionally to the autosave trigger PV.)

Currently, the restore operation can happen at boot time, or in response to the command "fdbrestoreX()" typed into the ioc console.  It is possible for the restore to occur in response to a PV, but that takes custom code. As it happens, I've been working on that the past few days.  I have something that works, but it's not very robust and doesn't handle errors.  I think a really good solution for would require some additional infrastructure built into autosave.

Tim

From: "Julio Calvo" <[email protected]>
To: [email protected]
Sent: Monday, March 11, 2013 11:26:08 AM
Subject: Save and Restore parameters

Hi folks,

I would like to know if somebody here has any clue or maybe has developed something similar to this (I think it should be quite common):

I need to save and restore some parameters in a LLRF system based on EPICS. I am using AsynPortDriver and CSS. Once an interlock happens (a bi change to true, for example) I need the system to figure it out and save all the PV's values to a file, then I need to restore them. The solution should be different from the archiving system, I am not able to develop archiving in my system.

Thank you so much for your help.

Cheers.
 
Julio.



References:
Save and Restore parameters Julio Calvo

Navigate by Date:
Prev: Re: Save and Restore parameters Mauro Giacchini
Next: Re: epics-perl & perlapi-5.10.1 Michael Davidsaver
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: Save and Restore parameters Mauro Giacchini
Next: Sequencer Julio Calvo
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 ·