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  2016  2017  <20182019  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  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: CSS-Boy : trigger not firing for $(pv_name) at runtime
From: Amien Crombie <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Thu, 2 Aug 2018 09:26:44 +0200

Hi

I have some python code that runs fine except for one issue.

######################################################################
pv_xRange[i]      = PVUtil.getDouble(pvs[4])  # xrange

if (pv_byteStatus[i]==isIN):
     wdg[i].setPropertyValue("y",widIN)
     wdg[i].setPropertyValue("border_color",    ColorFontUtil.BLACK)
     wdp[i].setPropertyValue("background_color",ColorFontUtil.BLACK)
     wdg[i].setPropertyValue("border_width",1)
     if (hTOP.getPropertyValue("visible")==False):  ##
        hTOP.setPropertyValue("visible",     True)
        hTOP.setPropertyValue("tooltip",     str(i))
        xgT.setPropertyValue("trace_0_y_pv", pv_xtrace[i])
        xgT.setPropertyValue("title",        pv_xname[i] )
        xgT.setPropertyValue("trace_0_x_pv", sp_x[i] )        ## set the X-axis spacing i.c.w. Harp
        ygT.setPropertyValue("trace_0_y_pv", pv_ytrace[i])
        ygT.setPropertyValue("title",        pv_yname[i] )
        xrT.setPropertyValue("pv_name",      pv_xRange[i])    ### NB - here I pass the 'pv' to my Wheel-widget via $(pv_name)
        yrT.setPropertyValue("pv_name",      pv_yRange[i])

######################################################################

Now the above script code receives some pv_names from another widget-group and everything works as follows:

xgT and ygT are xy-plot widgets and xrT and yrT are Wheel widgets

As an example, my '$(pv_name)' for widget xrT is displayed correctly and I can change the pv as normal...but my python script I wrote on this widget does not fire..

somehow the '$(pv_name)' in my script windows that I pass does not fire in the script.

So I'm thinking that somehow the macro '$(pv_name)' is not updated at the time of the script execution although the CSS gui has the correct pv for '$(pv_name)' when I run CSS.

I'm using CSS-4.5 (64-bit) running on Ubuntu 18.04

Thanks

Amien


Navigate by Date:
Prev: Re: Delta Tau motor control problem J. Lewis Muir
Next: Re: B21 Areadetector [email protected]
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Delta Tau motor control problem Pearson, Matthew R.
Next: Re: CSS-Boy : trigger not firing for $(pv_name) at runtime (FIXED) Amien Crombie
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 07 Aug 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·