Experimental Physics and Industrial Control System
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: [email protected] [mailto:[email protected]] 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
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024