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: making edm draw the desired related display based on value of a PV
From: Dayle Kotturi <[email protected]>
To: John William Sinclair <[email protected]>
Cc: Tech-talk <[email protected]>
Date: Thu, 4 Nov 2010 15:53:43 -0700 (PDT)
To conclude this thread, this solution works, provided I use edm
1-12-33 or greater.  I'm using edm 1-12-38 with epics R3.14.8.2.

I found that caget -t appends a blank character to the result. So,
to use the result in the name of the embedded window file, I had to
strip that off with sed. Without doing this, the name was constructed as
"pdu_trig_PP0 .edl" which did not exist.

Here is how it looks:
echo \'`caget -t TRIG:LI20:201:MODE`\'
'PP0 '
echo \'`caget -t TRIG:LI20:201:MODE | sed 's/[ \t]*$//'`\'
'PP0'

In the .edl file that launches the related display, I set the macro MODE=`caget -t TRIG:LI20:201:MODE | sed 's/[ \t]*$//'`
and it works.


Dayle Kotturi

On Wed, 3 Nov 2010, John William Sinclair wrote:

Hi Dayle,

You may do the following when you specify the macro symbol values as

name=SomeName,mode=`caget -t ModePv`

This opens the related display and sets name to SomeName and mode to the
value of ModePv.

John Sinclair

References:
making edm draw the desired related display based on value of a PV Dayle Kotturi
Re: making edm draw the desired related display based on value of a PV John William Sinclair

Navigate by Date:
Prev: RE: Solais 10 3.14.10 build problem Allison, Stephanie
Next: base 3-14-11 and breakpoint tables for ai and ao Mark Clift
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: making edm draw the desired related display based on value of a PV John William Sinclair
Next: 64-bit ioc mca issue emmanuel_mayssat
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, 04 Nov 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·