Hi Kay,
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?
—
Anthony Pietryla
Principal Controls Engineer
Advanced Photon Source
Argonne National Laboratory
Phone: 630-252-7430
Fax: 630-252-6123
On 12/1/20, 9:54 AM, "Kasemir, Kay" <kasemirk at ornl.gov> wrote:
> I am trying to open a CSS Phoebus screen and I want to pass the value of a macro from the command line at startup. How can I do this?
Amongst your options:
Add the file and macros to the command line,
phoebus.sh -resource file:/path/to/file?MACRO1=value+1&MACRO2=ab
Or create predefined macros in a my_settings.ini file:
org.csstudio.display.builder.model/macros=<EXAMPLE_MACRO>Value from Preferences</EXAMPLE_MACRO>
.. and then start with that settings file:
phoebus.sh -settings /path/to/my_settings.ini
Or define the macro as environment variables, since macros fall back to them
export EXAMPLE_MACRO=SomeValue
export ANOTHER_MACRO=SomeOtherValue
phoebus.sh
- Replies:
- Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Kasemir, Kay 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
- Navigate by Date:
- Prev:
EPICS driver for Xilinx ZYNQ ultrascale FPGA firmware PL register read write Kunjir, Shriraj via Tech-talk
- Next:
Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Kasemir, Kay 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
<2020>
2021
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 Kasemir, Kay via Tech-talk
- Next:
Re: How do I pass a macro to a CSS Phoebus screen at startup from the command line Kasemir, Kay 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
<2020>
2021
2022
2023
2024
|