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  2020  2021  2022  2023  <20242025  2026  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  <20242025  2026 
<== Date ==> <== Thread ==>

Subject: Re: Use PV value as a macro definition when opening a display
From: William F Badgett Jr via Tech-talk <[email protected]>
To: CHOQUET Antoine <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 17 Jul 2024 13:43:29 +0000

Thanks!  I will try this out...


From: CHOQUET Antoine <[email protected]>
Sent: Wednesday, July 17, 2024 3:00 AM
To: William F Badgett Jr <[email protected]>; [email protected] <[email protected]>
Subject: RE: Use PV value as a macro definition when opening a display
 

[EXTERNAL] – This message is from an external sender

Hello,

These examples may inspire you:
https://github.com/ControlSystemStudio/phoebus/blob/master/app/display/model/src/main/resources/examples/embedded/update_display.py

And I have attached two bob files that will help you do what you are looking for.

To summarise:

I use a script that retrieves the value of a local PV and puts it in the macro property of an "embedded display" widget, and this widget calls an "action button" widget that has the macro defined in its file property.

Antoine Choquet.
CEA, Irfu/DIS/LDISC.


De : Tech-talk <[email protected]> de la part de William F Badgett Jr via Tech-talk <[email protected]>
Envoyé : lundi 15 juillet 2024 23:10
À : [email protected]
Objet : Use PV value as a macro definition when opening a display
 
I'd like to create an action button that automatically opens a display with a macro defined based on the value of a PV – how does one do that?    Using $(pv_value) in the includes things like data type in addition to the actual PV value.  Ideas?

thanks

William Badgett
Accelerator Division Controls
Fermi National Accelerator Lab
Kirk and Wilson Roads, MS 360
BTE-214 Booster Tower East Room 214
Batavia, IL 60510 U.S.A.


References:
Use PV value as a macro definition when opening a display William F Badgett Jr via Tech-talk
RE: Use PV value as a macro definition when opening a display CHOQUET Antoine via Tech-talk

Navigate by Date:
Prev: Re: ADURL failing to open specific URL Marco Filho via Tech-talk
Next: RE: Channel Finder Recsync Server issue Sky Brewer 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  <20242025  2026 
Navigate by Thread:
Prev: RE: Use PV value as a macro definition when opening a display CHOQUET Antoine via Tech-talk
Next: Channel Finder Recsync Server issue Sandeep Kumar Malu - STFC UKRI 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  <20242025  2026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·