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  <20212022  2023  2024  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Possible to Populate CSS text fields with JDBC calls?
From: "Hu, Yong via Tech-talk" <tech-talk at aps.anl.gov>
To: "Mooney, Tim M." <mooney at anl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Manoussakis, Adamandios" <manoussakis1 at llnl.gov>
Date: Fri, 26 Mar 2021 16:42:39 +0000

Hi Adamandios,

 

This is from your first message: “I have been trying to figure out best way to store different configurations (Multiple experiment configurations) in a database then push them to all the IOC (PVs) when needed.”

For this kind of application at NSLS-II, we have been using a tool named “MASAR” for almost one decade. See this:

https://indico.esss.lu.se/event/507/contributions/3870/

 

The source codes being used at NSLS-II are quite old (built against EPICS V4 about five or six years ago). You may try the link below if you plan to embark on the tool:

https://github.com/epics-base/masarService

 

Good luck!

Yong

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Reply-To: "Mooney, Tim M." <mooney at anl.gov>
Date: Thursday, March 25, 2021 at 2:55 PM
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Manoussakis, Adamandios" <manoussakis1 at llnl.gov>
Subject: Re: Possible to Populate CSS text fields with JDBC calls?

 

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 (http://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


Replies:
Re: Possible to Populate CSS text fields with JDBC calls? Manoussakis, Adamandios via Tech-talk
References:
Possible to Populate CSS text fields with JDBC calls? Manoussakis, Adamandios via Tech-talk
Re: Possible to Populate CSS text fields with JDBC calls? Kasemir, Kay via Tech-talk
RE: Possible to Populate CSS text fields with JDBC calls? Manoussakis, Adamandios via Tech-talk
Re: Possible to Populate CSS text fields with JDBC calls? Ralph Lange via Tech-talk
RE: Possible to Populate CSS text fields with JDBC calls? Manoussakis, Adamandios via Tech-talk
Re: Possible to Populate CSS text fields with JDBC calls? Kasemir, Kay via Tech-talk
Re: Possible to Populate CSS text fields with JDBC calls? Kasemir, Kay via Tech-talk
Re: Possible to Populate CSS text fields with JDBC calls? Manoussakis, Adamandios via Tech-talk
Re: Possible to Populate CSS text fields with JDBC calls? Mooney, Tim M. via Tech-talk

Navigate by Date:
Prev: RE: Phoebus lock down BOB Stainer Tom via Tech-talk
Next: Re: Phoebus lock down BOB Kasemir, Kay 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Possible to Populate CSS text fields with JDBC calls? Manoussakis, Adamandios via Tech-talk
Next: Re: Possible to Populate CSS text fields with JDBC calls? Manoussakis, Adamandios 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  <20212022  2023  2024 
ANJ, 26 Mar 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·