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 <2023> 2024 2025 | 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 <2023> 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Re: Record process when restore using autosave |
From: | 吴煊 via Tech-talk <tech-talk at aps.anl.gov> |
To: | "ralph lange" <ralph.lange at gmx.de> |
Cc: | epics tech talk <tech-talk at aps.anl.gov> |
Date: | Sun, 9 Jul 2023 22:01:02 +0800 (GMT+08:00) |
Cheers,
Xuan
-----原始邮件-----
发件人:"Ralph Lange" <ralph.lange at gmx.de>
发送时间:2023-07-07 17:18:02 (星期五)
收件人: "EPICS Tech Talk" <tech-talk at aps.anl.gov>
抄送: "吴煊" <wux at ihep.ac.cn>
主题: Re: Record process when restore using autosave
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