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  <20122013  2014  2015  2016  2017  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CSS XY Graph Pause
From: Peter Milne <[email protected]>
To: Pavel Maslov <[email protected]>
Cc: EPICS Tech-Talk <[email protected]>
Date: Fri, 21 Dec 2012 08:56:44 +0000
Hi John

We do this by adding a pause button with a javascript action to disable the waveforms. It works, but the graph widget "pinks out", that's a feature of course. Pavel's idea to disable at the IOC may be better, but it does mean that all scope displays freeze, while the local disable is just that, local.

Cheers


Peter

example javascript (8 traces on display):

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

var pause = display.getVar("pause");
var xygraph=display.getWidget("XY Graph");

if(pause == null || pause==false){
	display.setVar("pause", true);
	for (var tr = 0; tr < 8; ++tr){
		var key = "trace_"+tr+"_y_pv";
		display.setVar(key, xygraph.getPropertyValue(key));	
		xygraph.getPV(key).stop();
	}
	widget.setPropertyValue("text", "Resume");
}else{
	display.setVar("pause", false);
	for (var tr = 0; tr < 8; ++tr){
		var key = "trace_"+tr+"_y_pv";
		
		xygraph.setPropertyValue(key, display.getVar(key));
		xygraph.getPV(key).start();
	}
    widget.setPropertyValue("text", "Pause");
}


On 12/21/2012 07:41 AM, Pavel Maslov wrote:
Hi John,

Is there an option "Plot n points and stop" in CSS Boy?
Another solution would be to implement a record that will use the SDIS
field of your waveform record to switch it back and forth (1 to 0). So
you will click the button and it stops updating data from the scope.
Click again, and - presto! - new data has arrived.


On Fri, Dec 21, 2012 at 2:28 AM, John Dobbins <[email protected]
<mailto:[email protected]>> wrote:

    Hello All,

    I am using a CSS XY graph to display a waveform. The graph actually
    displays the last n values on the waveform presenting an
    oscilloscope like trace. I would like to be able to pause the
    display. Can someone recommend a way of doing this?

    Regards,

    John Dobbins

    Lab for Elementary Particle Physics
    Cornell University




--
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01


--
Peter Milne			[email protected]
D-TACQ Solutions Ltd		www.d-tacq.com

References:
CSS XY Graph Pause John Dobbins
Re: CSS XY Graph Pause Pavel Maslov

Navigate by Date:
Prev: Re: CSS XY Graph Pause Pavel Maslov
Next: Re: CSS XY Graph Pause Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: CSS XY Graph Pause Pavel Maslov
Next: Re: CSS XY Graph Pause Rod Nussbaumer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·