g+
g+ Communities
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  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: CSS X-Y Graph
From: John Dobbins <john.dobbins@cornell.edu>
To: "Chen, Xihui" <chenx1@ornl.gov>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 22 Feb 2012 10:12:35 -0500
Xihui.

Thanks. I'll look forward to trying the new version.

John

On 2/22/2012 9:53 AM, Chen, Xihui wrote:
Hi John and Michael,

Using the rule as Michael described should be the best way to do that, but I think it is not a reasonable to cut the start of the waveform, so I just changed it to cut the end in my code. So in next version of BOY, you should be able to use rule to do this.

For now, there is an alternative way to do that: you can manipulate the data array in script before plotting it. For example, you can only plot an arbitrary subarray of the waveform or only plot the even/odd points. Please see BOY Examples->Miscellaneous->ArraysOperation->PlotFirstNPointsExample.opi

Thanks,
Xihui




-----Original Message-----
From: Michael Davidsaver [mailto:mdavidsaver@bnl.gov]
Sent: Tuesday, February 21, 2012 6:48 PM
To: tech-talk@aps.anl.gov
Subject: Re: CSS X-Y Graph

Hello John,

I too have had trouble doing this.  I was able to setup a rule to set
the buffer size from the NORD field of a waveform record.  The result
was that, when the size was reduced, the start of the waveform was
removed instead of the end.  So not very useful.

In the end, as this data was for display only, I "fixed" this by
padding
the arrays by repeating the last value.  This at least produces the
correct visual effect.

I would welcome a better solution.

Michael


On 2/21/2012 4:45 PM, John Dobbins wrote:
All,

I am trying to create an X-Y graph for displaying a waveform which
may change in length.

A Tech-Talk thread from June 2010

http://www.aps.anl.gov/epics/tech-talk/2010/msg00740.php

suggests to put a PV into "Buffer Size" . However I am trying to do
that now (CSS 3.1) and find I can only put an integer into this field,
not a PV.


Taking a step back, is there a recommended approach for displaying a
waveform which may vary in size. I would like the plot x scale to
automatically adjust to the new waveform length.


Thanks,

John Dobbins

Cornell University



References:
CSS X-Y Graph John Dobbins
Re: CSS X-Y Graph Michael Davidsaver
RE: CSS X-Y Graph Chen, Xihui

Navigate by Date:
Prev: RE: CSS X-Y Graph Chen, Xihui
Next: AW: Connection to Siemens S7 PLC Rekow Jens
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: RE: CSS X-Y Graph Chen, Xihui
Next: Alarm for noisy readback channel Paul Nord
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·