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  <20112012  2013  2014  2015  2016  2017  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Issues on image displaying in CSS [SEC=UNCLASSIFIED]
From: "Chen, Xihui" <[email protected]>
To: "WANG, Jian" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 19 Sep 2011 13:44:46 -0400
Hi Jian,

In principle, you could use widget.setPropertyValue(prop_id, value, true); to force update the image, but I found that the image figure will not update the image if the new path is same as old path, so it won't work. I will remove that line to make it work in next version. Right now, you can only refresh the image in a script/rule with a hack by taking use of the workspace file path and local file path, which actually point to the same image file (the trigger pv can be something like sim://ramp): 

importPackage(Packages.org.csstudio.opibuilder.scriptUtil);

var v = PVUtil.getDouble(pvs[0]);

if(v%2==0)
	widget.setPropertyValue(
	"image_file", "/BOY Examples/pictures/valve_on.gif"); 
else
	widget.setPropertyValue(
	"image_file", "C:/Users/Work/java test/BOY Examples/pictures/valve_on.gif");




Thanks,
Xihui



-----Original Message-----
From: WANG, Jian [mailto:[email protected]] 
Sent: Sunday, September 18, 2011 10:54 PM
To: [email protected]
Subject: Issues on image displaying in CSS [SEC=UNCLASSIFIED]

Hi,
We are currently using CSS as a monitor and display for our accelerator running status. We have got some trouble to make image  displayed be refreshable when source file contains has been changed.
For example, if we display an image file from /home2epics/operatorImage/display.png on CSS, however the contains in image file "display.png" is frequently updated (same file name and same location). We are expecting such image changing can be refreshed on CSS. Unfortunately, we cannot find such option in CSS package. 
By the way, similar function in EDM can be refreshed depending upon user's setting such as 1 second or 2 seconds.
Could anyone help us to fix this issue?
Thanks in advance!
Best regards,

Jian

----
Jian Wang  
Accelerator Operations Group, 
Bld 22, I. E. R. 
Australian Nuclear Science and Technology Organisation
Locked Bag 2001 Kirrawee DC NSW 2232
Australia
T. +61 2 9717 7062 F. +61 2 9717 3038

Important: This transmission is intended only for the use of the addressee. It is confidential and may contain privileged information or copyright material. If you are not the intended recipient, any use or further disclosure of this communication is strictly forbidden. If you have received this transmission in error, please notify me immediately by telephone and delete all copies of this transmission as well as any attachments.






References:
Issues on image displaying in CSS [SEC=UNCLASSIFIED] WANG, Jian

Navigate by Date:
Prev: Re: How to write a python-based backpup tool? Matt Newville
Next: Re: aSubRecord VAL field Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Issues on image displaying in CSS [SEC=UNCLASSIFIED] WANG, Jian
Next: 2 software engineering associate positions open at Advanced Photon Source Claude Saunders
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·