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 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
<== Date ==> <== Thread ==>

Subject: Re: Automatic refresh of OPI
From: "Kasemir, Kay" <kasemirk@ornl.gov>
To: Iain Marcuson <Iain.Marcuson@sydorinstruments.com>, "tech-talk@aps.anl.gov >> EPICS Tech Talk" <tech-talk@aps.anl.gov>
Date: Tue, 12 Sep 2017 13:01:50 +0000
Hi:

> My IOC has a group of parameters that are internally set and get as a group, owing to the design of the backend. 
> The user may want to change only one of the parameters, but the others must be set at the same time. 
> The setter uses Text Input widgets,  while the getter uses Text Update widgets.  I have set up the getter  to populate the setter widgets, 
> allowing quick modification of just one parameter.  However, in order for the Text Input widgets to show the values from the getter,
> I need to refresh the OPI.  Is there a way to automate that. 
> Toggling GUIUtil.compactMode() as suggested at http://www.aps.anl.gov/epics/tech-talk/2016/msg00154.php did not refresh the widgets.

I'm not quite sure what you're trying to do here.
Does your IOC require you to write several PVs "at the same time"?
Like a "start", "stepsize" and "end" parameter that all need to be written concurrently whenever one of them changes?
==> The underlying Channel Access protocol doesn't support such an operation. It can only write PVs one by one.
If you really need to write several parameters "at once", you need to write an array value.

But as for your basic question how to pro grammatically refresh the display, the same as using the "Refresh" option from the context menu, you could do this from a script:

from org.csstudio.opibuilder.scriptUtil import ScriptUtil
ScriptUtil.executeEclipseCommand("org.eclipse.ui.file.refresh")

-Kay

Replies:
RE: Automatic refresh of OPI Iain Marcuson
References:
Automatic refresh of OPI Iain Marcuson

Navigate by Date:
Prev: RE: Cannot communicate with S7-400 Antal, Szabolcs
Next: RE: Automatic refresh of OPI Iain Marcuson
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
Navigate by Thread:
Prev: Automatic refresh of OPI Iain Marcuson
Next: RE: Automatic refresh of OPI Iain Marcuson
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
ANJ, 12 Sep 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·