Hi Mike,
I would use some database logic for this. A PV would trigger a write of some PVs to a set of 'save' PVs, and another one would trigger a read from them. To span multiple IOCs you would need a database in each of them, then a high level PV to trigger both sets.
Or, if this is ok in a client, using a backup and restore tool, like BURT, or a Python script, would do the job.
Cheers,
Matt
Data Acquisition and Control Engineer
Spallation Neutron Source
Oak Ridge National Lab
On Mar 6, 2014, at 11:23 AM, "Westfall, Michael D" <[email protected]> wrote:
> And a third problem:
>
> The set of values I need to save and restore may span multiple IOCs.
> So I'm thinking Autosave is not the right tool at all.
>
>
>> I know that Autosave is generally used for automatically saving the values of
>> a set of database records and restoring them at boot time, but I'd like to save
>> a small set of values on command, and then be able to restore them on
>> command.
>>
>> I have found the create_triggered_set() function that I can run in the ioc
>> startup script that assigns a database PV to trigger a save, and that seems to
>> be a step in the right direction for what I want to do.
>>
>> However, a couple of problems:
>> 1) There seems to be no corresponding function to assign a PV to trigger a
>> restore. I suppose I can get around that by using a subroutine record to call
>> fdbrestore() when it is processed.
>> 2) Even if I can get around issue 1), when I run create_triggered_set() in the
>> startup script at boot time, it clobbers the existing saveset. Is there a way
>> around this?
>>
>>
>> Perhaps I'm trying to use the wrong tool? Is there a better one for what I
>> want to do?
>
>
- References:
- Question on Autosave Westfall, Michael D
- RE: Question on Autosave Westfall, Michael D
- Navigate by Date:
- Prev:
RE: Question on Autosave Mooney, Tim M.
- Next:
RE: Question on Autosave Mooney, Tim M.
- 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
- Navigate by Thread:
- Prev:
RE: Question on Autosave Westfall, Michael D
- Next:
RE: Question on Autosave Mooney, Tim M.
- 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
|