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: Script BOY IntensityGraph to show areaDetector output of variable size
From: [email protected]
To: [email protected]
Date: Wed, 20 Apr 2016 12:34:36 +0200
this is the very simple python script that I use:

from org.csstudio.opibuilder.scriptUtil import PVUtil

imageWidget        = display.getWidget('Image')
imageXSizeWidget   = display.getWidget('X-Size')
imageYSizeWidget   = display.getWidget('Y-Size')

try :
	imageXSizePV   = imageXSizeWidget.getPV()
	imageYSizePV   = imageYSizeWidget.getPV()

	nImageRows    = PVUtil.getLong(imageYSizePV)
	nImageColumns = PVUtil.getLong(imageXSizePV)

	imageWidget.setPropertyValue('graph_area_width', 512)
imageWidget.setPropertyValue('graph_area_height', (512.0/nImageColumns)*nImageRows)

except :
    pass



Phil Atkin <[email protected]> ha scritto:

Hi,

I'm using BOY IntensityGraph to show a (stdArray) output image from an areaDetector driver/plugin.
The size of my array changes quite a bit.
Can someone tell me (in laborious detail if necessary, please) how to set up scripts or "embedded rules" on the IntensityGraph to cope with a variable-sized image?

Thanks!

Phil




Replies:
Re: Script BOY IntensityGraph to show areaDetector output of variable size Phil Atkin
References:
Script BOY IntensityGraph to show areaDetector output of variable size Phil Atkin

Navigate by Date:
Prev: Script BOY IntensityGraph to show areaDetector output of variable size Phil Atkin
Next: Re: Script BOY IntensityGraph to show areaDetector output of variable size Phil Atkin
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: Script BOY IntensityGraph to show areaDetector output of variable size Phil Atkin
Next: Re: Script BOY IntensityGraph to show areaDetector output of variable size Phil Atkin
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 ·