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

Subject: Re: MEDM: Hiding waveforms in the Cartesian Plot object
From: PaweÅ PrÄdki <[email protected]>
To: "J. Lewis Muir" <[email protected]>
Cc: [email protected]
Date: Mon, 12 Jul 2010 18:22:00 +0200
Hi Lewis,

I was afraid that would be the answer :) This solution could work for a small number of waveforms but I'm dealing with 16 of them so this is not an option.

Thanks for the grouping 'hack', anyway - this will come in handy in another problem I've been trying to deal with.

Cheers,
Pawel

J. Lewis Muir wrote:
On 7/12/10 6:36 AM, PaweÅ PrÄdki wrote:
Hello,
Is it possible to choose at run-time which waveforms in the Cartesian
Plot object are visible and which are not?

Suppose I define four different inputs for such an object and want to
place four buttons which control the visibility of each of these input
waveforms. Can that be done?

I tried using the Erase option but it clears the whole object and can't
be used to choose specific waveforms.

Hi, PaweÅ.


I don't think that's possible.

A hack, if you're willing to display one waveform at a time, is to
define four Cartesian Plot objects, all of the same size, each on top of
the other.  Make each plot display just one of the waveforms.  Select
each plot, context-click on it, and choose Group.  Create an mbbo record
in your IOC called "$(P)CartesianPlotSelection" (or whatever) and define
ZRVL=0, ONVL=1, TWVL=2, and THVL=3.  Then make each grouped Cartesian
Plot object (which is now a Composite object) visible only if
"$(P)CartesianPlotSelection" matches the ID (0-3) of the particular
Cartesian Plot object.  Make your buttons simply write to
"$(P)CartesianPlotSelection" the desired ID of the Cartesian Plot you'd
like to display.

If you want to actually display more than one waveform at a time
according to your button presses (i.e. making them behave more like
checkboxes), then you could extend this hack and create grouped
Cartesian Plot objects for all the combinations you want to support --
15 for all of them.  You would then add extra behavior to your IOC or to
your Composite objects' calc expression for determining whether to
display the Cartesian Plot.

Lewis



Replies:
Re: MEDM: Hiding waveforms in the Cartesian Plot object Luedeke Andreas
References:
MEDM: Hiding waveforms in the Cartesian Plot object PaweÅ PrÄdki
Re: MEDM: Hiding waveforms in the Cartesian Plot object J. Lewis Muir

Navigate by Date:
Prev: Re: MEDM: Hiding waveforms in the Cartesian Plot object J. Lewis Muir
Next: RE: MAXv "spurious" command errors Davidsaver, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: MEDM: Hiding waveforms in the Cartesian Plot object J. Lewis Muir
Next: Re: MEDM: Hiding waveforms in the Cartesian Plot object Luedeke Andreas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·