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  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Dynamically refresh CSS BOY runtime OPI
From: "Kasemir, Kay" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 15 Jan 2016 13:53:25 +0000
Hi:

Maybe reconsider your use case.
BOY (EDM, MEDM, ..) work best if you use them as originally intended:
1) Add suitable widget
2) Set PV name
Done.

In BOY, you can use scripts to handle some very special cases, but the portability of scripts cannot be guaranteed through updates of the software and will certainly be slower than using any of the built-in functionality.
If you want a circle that changes color, don’t use a circle with rule or script but instead use the LED widget.
If you want a text that changes content, don’t use a Label w/ rule/script but instead use a TextUpdate widget.
To change displays, use buttons that allow operators to open related displays.

If absolutely have to create a video game:
Use a linking container, and set the “opi_file” property of that one in a script based on your PV.
--> PV will determine what’s displayed inside the linking container.
Like this:

# Script for LinkingContainer that shows either A.opi or B.opi
#
# pvs[0]: PV like sim://sine that changes positive/negative
from org.csstudio.opibuilder.scriptUtil import PVUtil
if PVUtil.getDouble(pvs[0]) > 0:
   widget.setPropertyValue("opi_file", "A.opi")
else:
   widget.setPropertyValue("opi_file", "B.opi")


-Kay

> Hi all,
> 
> Here is my question:
> I want to refresh BOY runtime OPI dynamically according to a state PV, i.e. if the value of state PV changes, the  OPI can be refreshed once automaticlly(same as click F5). How to use embeded java script to do this?
> 
> Regards,
> 
> Yuliang Zhang



Replies:
Re: Re: Dynamically refresh CSS BOY runtime OPI Zhang Yuliang
Unable to tunnel CSS CA through ssh tunnels Jon Brinkmann
References:
Dynamically refresh CSS BOY runtime OPI Zhang Yuliang
RE: Dynamically refresh CSS BOY runtime OPI Mazanec Tomáš
RE: Dynamically refresh CSS BOY runtime OPI will.rogers

Navigate by Date:
Prev: Re: Cost effective solution for monitor a large number of temperatures w EPICS Jack
Next: Keithley 7001 Scanner Support Jiro Fujita
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Dynamically refresh CSS BOY runtime OPI will.rogers
Next: Re: Re: Dynamically refresh CSS BOY runtime OPI Zhang Yuliang
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·