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  <20132014  2015  2016  2017  2018  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: CSS/BOY rule question [SEC=UNOFFICIAL]
From: "LYNCH, Damien" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 4 Apr 2013 02:42:35 +0000
Hi,

I have an OPI with two menu buttons. The first menu button (mb1) allows the operator to choose between two PVs. The chosen PV is written to the INPB field of a subroutine record.

I would like the second button (mb2) to allow the operator to choose the scan rate of the PV chosen by the first button. It has the "Actions From PV" property set to "yes".  I added a rule to the second button that triggers on the subroutine INPB field and modifies the pv_name property. Here is the generated script:

importPackage(Packages.org.csstudio.opibuilder.scriptUtil); 
var pvStr0 = PVUtil.getString(pvs[0]);
if(pvStr0=="i2fci CP NMS")
	widget.setPropertyValue("pv_name","i2fci.SCAN");
else if(pvStr0=="lefc1i CP NMS")
	widget.setPropertyValue("pv_name","lefc1i.SCAN");
else
	widget.setPropertyValue("pv_name","");

When I choose a PV with mb1 I am pretty sure the rule runs since I see mb2 become disconnected briefly and then if I right click mb2 and show PV info I see the PV selected by mb1. However changing the scan rate using mb2 always changes the scan rate of whatever PV was originally chosen (in the subroutine INPB field) when the OPI started.

Is this the expected behaviour?

Thanks,
Damien


Navigate by Date:
Prev: pid record graham waters
Next: Fault Report and Tracking System enquiry? Juan.Guzman
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: pid record graham waters
Next: Fault Report and Tracking System enquiry? Juan.Guzman
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·