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
<2016>
2017
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
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
|