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: CSS perspective from OPI
From: "gennaro.tortone@na.infn.it" <tortone@na.infn.it>
To: will.rogers@diamond.ac.uk
Cc: tech-talk@aps.anl.gov
Date: Fri, 28 Apr 2017 12:02:09 +0200 (CEST)

Hi Will,
thanks a lot,
it works !

Regards,
Gennaro

On Fri, 28 Apr 2017, will.rogers@diamond.ac.uk wrote:

Hi Gennaro,

There is a way to do this, although I can imagine it might be a bit tricky to make it do exactly what you want.

If you attach a python script to an action button, you can add the following:


from org.csstudio.opibuilder.scriptUtil import ScriptUtil

ScriptUtil.executeEclipseCommand("org.eclipse.ui.perspectives.showPerspective",
  ["org.eclipse.ui.perspectives.showPerspective.perspectiveId", "org.csstudio.trends.databrowser.Perspective"])

I tried this, and of course it then changes to the data browser perspective, hiding the OPI screen from which you pressed the button.

Cheers,
Will


________________________________________
From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on behalf of gennaro.tortone@na.infn.it [tortone@na.infn.it]
Sent: 28 April 2017 09:00
To: tech-talk@aps.anl.gov
Subject: CSS perspective from OPI

Hi,
I'm looking for a way to open a CSS perspective (e.g. Data Browser)
from an OPI;

I already know how to open "Data Browser" from a running OPI
(CS-Studio -> Trends -> Data Browser) but I would like to
open Data Browser from an user control button...

Thanks in advance,
Gennaro

--
Gennaro Tortone
INFN Napoli
Italy
tel: +39 81 676169

"Computer Science is no more about computers
    than astronomy is about telescopes."
    - Edsger Dijkstra




--
Gennaro Tortone
INFN Napoli
Italy
tel: +39 81 676169

"Computer Science is no more about computers
    than astronomy is about telescopes."
    - Edsger Dijkstra

References:
CSS perspective from OPI gennaro.tortone@na.infn.it
RE: CSS perspective from OPI will.rogers

Navigate by Date:
Prev: RE: CSS perspective from OPI will.rogers
Next: asyn or caput rate limits? Brown, Garth
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: RE: CSS perspective from OPI will.rogers
Next: asyn or caput rate limits? Brown, Garth
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, 29 Apr 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·