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: John William Sinclair <[email protected]>
To: Dayle Kotturi <[email protected]>
Cc: Tech-talk <[email protected]>
Date: Wed, 03 Nov 2010 11:28:10 -0400
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

Dayle Kotturi wrote:
Hello,

In our timing system, there are four possible modes of triggers.  I want
to display all 560 triggers the same way, putting their names as the label
on related display widget buttons, regardless of the mode of the trigger.

When the user clicks on the trigger name, a generic related display is passed the trigger name and mode as macros. The generic display
contains an embedded window widget which draws the appropriate "form",
in "Display Source", by mangling the name of the mode-appropriate display
name for "Display File Name" via pdu_trig_$(MODE).edl into one of the four possible filenames.


This is all ok, but it means I have to have to hardcode the definition of
$(MODE) into the macros for each trigger.

Is there a way that I can display the correct edl file based on the value
of a PV of the MODE at runtime? The modes are not going to be changing between
boots.

I had envisioned drawing all four related displays and then using visibility
rules, but related display widget does not have visibility rule option. I don'tknow if they can be "grouped" to widgets that do have this option.

thanks for any help,

Dayle Kotturi [email protected]
Controls Department SLAC National Accelerator Laboratory


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

Navigate by Date:
Prev: Re: FW: write failure occuring in writeScanRecInProgress function(after writing header) in saveData.c (sscan-2-6-6 module) Tim Mooney
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 
Navigate by Thread:
Prev: RE: making edm draw the desired related display based on value of a PV tom.cobb
Next: Re: making edm draw the desired related display based on value of a PV Dayle Kotturi
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 ·