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  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line
From: "Kasemir, Kay via Tech-talk" <tech-talk at aps.anl.gov>
To: "Pietryla, Tony" <afp at anl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 7 Dec 2020 17:35:35 +0000
Hi:

>I succeeded in passing macros on the command line, now I want to open a generic display from this top level display and selectively assign one of the macros. I am using an action button to open the related display. I have tried assigning the generic macro to one of macros passed from the command line (GENERIC_MACRO = $(MACRO1)), in the related display dialog box, but the macro doesn’t expand. The new screen shows the value of GENERIC_MACRO as $(MACRO1) rather than the value of $(MACRO1).

>How can accomplish this?

This works for me:

In a display, define MACRO1=Value 1, MACRO2 = Value 2.
Then add for example a label with text "You picked $(PICK)".

I can now open that  display from the command line with one of

 -resource file:/path/to/file?PICK=Something
 -resource file:/path/to/file?PICK=$(MACRO1)
 -resource file:/path/to/file?PICK=$(MACRO2)

and as a result the screen opens with "You picked Something", "You picked Value 1" respectively "You picked Value 2".

In the last case, when I open the context menu on the display to open the display information dialog, then check the "Macros" tab, it contains:
MACRO1 = Value 1
MACRO2 = Value 2
PICK = $(MACRO2)

-Kay


Replies:
Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
References:
How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Kasemir, Kay via Tech-talk
Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk

Navigate by Date:
Prev: Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
Next: Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
Next: Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Pietryla, Tony via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 07 Dec 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·