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  <20102011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: RE: CSS BOY / scripting / XY Graph
From: "Chen, Xihui" <chenx1@ornl.gov>
To: John Dobbins <john.dobbins@cornell.edu>, EPICS Tech-Talk <tech-talk@aps.anl.gov>
Date: Tue, 22 Jun 2010 14:19:40 -0400
Hi John,

So far, PV name property cannot be changed during runtime because it needs initialization (creat pv, connect, add listener, etc,.) during the start of an OPI. Such kind of properties also include "Scripts" and "Rules" (which will be available in next version).

Considering your requirement, it might be important to make PV Name changeable during runtime. I will try to find a way to add this feature to BOY.

Thanks,
Xihui


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of John Dobbins
Sent: Tuesday, June 22, 2010 1:02 PM
To: EPICS Tech-Talk
Subject: CSS BOY / scripting / XY Graph

Can one change the XY Graph->Trace 0-> X PV dynamically through a script?  

If so,  what is the associated property name?


This works:

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

var profileType = PVUtil.getString(pvArray[0]);

var pvToPlot = 'LGTVID01_Stats1:Profile' + profileType + 'Y_RBV'

widgetController.setPropertyValue("title", pvToPlot);



But if I change  "title" to say "x_pv"  the OPI builder console reports a script error.


Regards,

John Dobbins

Lab for Elementary  Aprtcile Physics
Cornell University





References:
CSS BOY / scripting / XY Graph John Dobbins

Navigate by Date:
Prev: RE: Problems configuring 4 IK320 cards Krempasky Juraj
Next: Re: MEDM installation instructions Andrew Wagner
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: CSS BOY / scripting / XY Graph John Dobbins
Next: RE: CSS BOY / scripting / XY Graph Chen, Xihui
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·