EPICS Home

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: Dynamically change file in embedded screen
From: CHOQUET Antoine via Tech-talk <tech-talk at aps.anl.gov>
To: Alessandra Palazzo <apalazzo at highvolteng.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 11 Oct 2024 10:09:08 +0000

Hello,

Here is an embedded python script that I use on an embedded display to update the file path:

"""
from org.csstudio.display.builder.runtime.script import PVUtil

channel = PVUtil.getString(pvs[0])

#Reload window
widget.setPropertyValue("file", "")
widget.setPropertyValue("file", channel)

"""

Then I use action buttons to write the path of the file to be opened in the embedded display. The action button writes the path as a string to a local pv, which the script above retrieves with pvs[0] (the script is triggered when the PV value changes).

Best Regards,

Antoine Choquet.
CEA - DRF/Irfu/DIS/LDISC


De : Tech-talk <tech-talk-bounces at aps.anl.gov> de la part de Alessandra Palazzo via Tech-talk <tech-talk at aps.anl.gov>
Envoyé : jeudi 10 octobre 2024 11:48:25
À : tech-talk at aps.anl.gov
Objet : Dynamically change file in embedded screen
 

Hi all,

 

is it  possible in Phoebus to dynamically change the file loaded in an embedded display?
I tried to create a display with an action button and an embedded display; the "file" field of the embedded display is a pv whose value is overwritten by clicking on the button.
This however doesn’t seem to work.

 

Best regards,

 

Alessandra Palazzo

Control System Engineer

 

Present: Mon - Tue - Wed - Thu - Fri

-----------------------------------------------------------------------------

High Voltage Engineering Europa B.V.

Amsterdamseweg 63, 3812 RR Amersfoort

P.O. Box 99, 3800 AB Amersfoort, The Netherlands

Tel       +31334619741

Fax      +31334615291

E-mail  apalazzo at highvolteng.com

Web     www.highvolteng.com

----------------------------------------------------------------------------

 


References:
Dynamically change file in embedded screen Alessandra Palazzo via Tech-talk

Navigate by Date:
Prev: Re: OPCUA SSL problem Michael Davidsaver via Tech-talk
Next: How to display subgroup in embedded screen Alessandra Palazzo 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: Dynamically change file in embedded screen Alessandra Palazzo via Tech-talk
Next: How to display subgroup in embedded screen Alessandra Palazzo 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