Thanks Tim,
I will take a look into this option and report back .
Sent from my iPhone
On Mar 25, 2021, at 11:55 AM, Mooney, Tim M. <mooney at anl.gov> wrote:
Hi Adamandios,
Autosave's configMenu facility is intended for this purpose. It can't read from a database, though. It reads and writes configurations as autosave .sav files (text files). Here's the relevant section of the documentation:
Tim Mooney (mooney at anl.gov) (630)252-5417
Beamline Controls Group ( www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Manoussakis, Adamandios via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, March 25, 2021 1:45 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: Possible to Populate CSS text fields with JDBC calls?
Thanks Kay,
I have been able to implement the autosave module from synapps. Does anyone know how I could link a Phoebus button to restoring a certain configuration if I used autosave? I was thinking that the Phoebus gui could set an env variable that the restore
command would reference? The only issue I currently see is the restore command is only called when the IOC is run for the first time. If the IOC is running and I want to restore another configuration, I would need to be in the epics shell to call restore
on a different file I think?
On Mar 25, 2021, at 11:26 AM, Kasemir, Kay <kasemirk at ornl.gov> wrote:
> Looking for options to automate filling in of PVs from database values given an
input from a user
There are "safe/restore" type tools if your scenario is really about storing N different configurations, i.e. N different snapshots of PVs and their values, and you later want to restore them.
For example, you might want to save power supply settings under names like "Low Energy Setup", "High Energy Setup", "Golden Setup from 2019/03/19" and then later compare them, restore them, etc.
Technically they might write the values from PVs to some relational database, then restore them by reading saved values from a relational database to PVs.
Again they're referred to as save/restore tools, you could look for those instead of starting over with a script embedded in a display.
-Kay
|