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: CHOQUET Antoine via Tech-talk <tech-talk at aps.anl.gov>
To: William F Badgett Jr <badgett at fnal.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 17 Jul 2024 08:00:31 +0000

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

Attachment: update_macro.bob
Description: update_macro.bob

Attachment: embedded_button.bob
Description: embedded_button.bob


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

Navigate by Date:
Prev: Alarm Server Periodically Disconnects from IOCS Srinivas, Dhruv via Tech-talk
Next: ADURL failing to open specific URL Marco Filho 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: Use PV value as a macro definition when opening a display William F Badgett Jr via Tech-talk
Next: Re: Use PV value as a macro definition when opening a display William F Badgett Jr 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 ·