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  2021  2022  <20232024  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  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Record process when restore using autosave
From: Ralph Lange via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Fri, 7 Jul 2023 11:18:02 +0200
On Fri, 7 Jul 2023 at 03:54, 吴煊 via Tech-talk <tech-talk at aps.anl.gov> wrote:

I need the records process in order to write the restored value to hardware when reboot the IOC using autosave module. It said "Restoring at run time can produce a different result than restoring at boot time, because record processing may occur." in the manual. But how? Any suggestion or advice would be great apprecaited


When you're doing an autosave restore procedure as part of the IOC boot, the restore will not process records. It will just be as if the restored values were in your database files.
When you do the restore while the IOC is up, restoring a value to a record will in most cases process the record immediately.

For your case, you need to add the processing-after-reboot as part of your database. A single fanout or seq record with PINI=YES setting will be processed at reboot. From that record you can link to all the records that need to be processed. By doing this, you have full control over the order of processing and the single initial PINI=YES record makes sure the processing chain happens exactly once, when the IOC is coming up.

Cheers,
~Ralph


Replies:
Re: Re: Record process when restore using autosave 吴煊 via Tech-talk
References:
Record process when restore using autosave 吴煊 via Tech-talk

Navigate by Date:
Prev: Re: interrupt read data in int32Driver example timesir via Tech-talk
Next: Re: interrupt read data in int32Driver example 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  2021  2022  <20232024 
Navigate by Thread:
Prev: Record process when restore using autosave 吴煊 via Tech-talk
Next: Re: Re: Record process when restore using autosave 吴煊 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  2021  2022  <20232024 
ANJ, 09 Jul 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·