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  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 
<== Date ==> <== Thread ==>

Subject: Re: Use PV value as a macro definition when opening a display
From: William F Badgett Jr via Tech-talk <tech-talk at aps.anl.gov>
To: CHOQUET Antoine <ANTOINE.CHOQUET at cea.fr>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 17 Jul 2024 13:43:29 +0000

Thanks!  I will try this out...


From: CHOQUET Antoine <ANTOINE.CHOQUET at cea.fr>
Sent: Wednesday, July 17, 2024 3:00 AM
To: William F Badgett Jr <badgett at fnal.gov>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
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 <tech-talk-bounces at aps.anl.gov> de la part de William F Badgett Jr via Tech-talk <tech-talk at aps.anl.gov>
Envoyé : lundi 15 juillet 2024 23:10
À : tech-talk at aps.anl.gov
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.
badgett at fnal.gov


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 
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 
ANJ, 11 Sep 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·