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

Subject: Re: XYgraph pv_name
From: "Kasemir, Kay" <[email protected]>
To: Amien Crombie <[email protected]>, EPICS Tech-Talk <[email protected]>
Date: Wed, 2 Aug 2017 16:05:19 +0000

Hi:


That "pv_name" that you're setting on the BOY XYGraph is basically a macro.

Later, in the Trace 0 Y PV you can then add "$(pv_name)".


When you later, at runtime, update that macro, it's not changing the Y PV used by the trace.


What you'd actually want to change is the "trace_0_y_pv" property.

But I'm not sure the BOY XYGraph supports changing the PVs of a trace at runtime.


-Kay


From: [email protected] <[email protected]> on behalf of Amien Crombie <[email protected]>

Sent: Wednesday, August 02, 2017 7:21 AM
To: EPICS Tech-Talk
Subject: XYgraph pv_name
 

Hi


I have a script as follows:

link = display.getWidget("linko")
child = link.getChild("xgraph")    # get the xygraph on linko

# here I get the 2 PV's i passed to the script

val= PVUtil.getString(pvs[0])   # this PV is used to switch to the desired opi
dal= PVUtil.getString(pvs[1])   # this is the PV i need

if val=="1.0":
    child.setPropertyValue("pv_name", dal)   # here the correct PV is displayed
    child.setPropertyValue("title",dal)

else:

    # do nothing


So when I call the script, everything works except the xygraph displays no trace. If I do a "PV info" when CSS is running on the graph, it actually shows the graph values.

It looks like the xygraph is not updating the trace at all.

Amien




Replies:
Re: XYgraph pv_name Amien Crombie
References:
XYgraph pv_name Amien Crombie

Navigate by Date:
Prev: Re: EPICS Redundancy J. Lewis Muir
Next: Re: Andor SDK3 issue - AT_WaitBuffer fails Brett Graham
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: XYgraph pv_name Amien Crombie
Next: Re: XYgraph pv_name 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  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·