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  <20162017  2018  2019  2020  2021  2022  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CSS Boy scripting, clear XY-Graph automatically
From: Hinxx <[email protected]>
To: [email protected]
Date: Thu, 4 Feb 2016 10:48:26 +0100
Hi Christian,

if you attached the script to the button you should do something like this in your script ("GridWires" is the widget name set in CSS):

importPackage(Packages.org.csstudio.opibuilder.scriptUtil);

var w = display.getWidget("GridWires");
ConsoleUtil.writeInfo("widget: " + w);
w.clearGraph();
ConsoleUtil.writeInfo("widget: " + w + " cleared!");


Hope this helps,
Hinko

On 02/03/2016 12:03 PM, Christian Pauly wrote:
Dear experts,
again i could really need some help:

I have created a CSS GUI display to control Scans based on the sscan record. The scan is started by pressing an "Action Button", and the scan data are immediately displayed using the XYGraph widget. So far very nice.

But now i want to clear the graph everytime i start a new scan by pressing the "scan" button. I guess i should simply attach a script to the button, containing basically only the "clearGraph()" command -

But i have no clue how to write this script.

I tried a single line:
"widget.clearGraph()", but always get the error message "clearGraph" is not defined.

How does it work ???

Thanks for any help -
Christian


Replies:
Re: CSS Boy scripting, clear XY-Graph automatically Kasemir, Kay
References:
CSS Boy scripting, clear XY-Graph automatically Christian Pauly

Navigate by Date:
Prev: RE: epicsqt question Andrew Rhyder
Next: BOY formatting of uniqueID and timestamp Phil Atkin
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CSS Boy scripting, clear XY-Graph automatically Christian Pauly
Next: Re: CSS Boy scripting, clear XY-Graph automatically Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·