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 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
<== Date ==> <== Thread ==>

Subject: CSS-4.5 : Display-Builder : getting widget's PV value
From: Amien Crombie <acrombie@tlabs.ac.za>
To: EPICS Tech-Talk <tech-talk@aps.anl.gov>
Date: Thu, 24 Aug 2017 10:54:49 +0200

Hi

My code :

1.     from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil
2.     from org.csstudio.display.builder.model.properties import WidgetColor
3.     ss = ScriptUtil.findWidgetByName(widget, "ss_range")
4.     sx = ScriptUtil.findWidgetByName(widget, "rangeX")
5.     pv = ScriptUtil.getPrimaryPV(sx)
6.     pval = PVUtil.getDouble(pv)
7.     ss.setPropertyValue("text", str(pv) + " : " + str(pval))    ##

##  'pv' returns the right pv attached to my 'spinner'. This pv is passed via the script as '$(pv_name)'

##  pval returns 'nan' although my 'spinner' displays the value (1 to 6) depending my last selected value


Thanks

Amien




Replies:
Re: CSS-4.5 : Display-Builder : getting widget's PV value Kasemir, Kay

Navigate by Date:
Prev: Re: Trend graph partly not shown in Data Browser with Archiver Appliance Shuei YAMADA
Next: Re: CSS-4.5 : Display-Builder : getting widget's PV value Kasemir, Kay
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
Navigate by Thread:
Prev: SNC Sequencer 2.2 not working when reading remote IOC variables? (no attachments) keith.thorne
Next: Re: CSS-4.5 : Display-Builder : getting widget's PV value Kasemir, Kay
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
ANJ, 24 Aug 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·