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

Subject: Re: CSS BOY Setting value of enum record in a python script
From: Pete Jemian <[email protected]>
To: <[email protected]>
Date: Thu, 17 Apr 2014 14:09:13 -0500
Can you make that record to be mbbo instead?
Usually, mbbi is for an enum coming from a device in the field.
Use mbbo to configure an enum from the user interface.

On 4/17/2014 11:26 AM, [email protected] wrote:
I am trying to toggle the value of an mbbi record in a BOY (embedded) action script.

The following simple code works for an ao record but not for an mbbi. The symptoms are that pv.setValue executes without error but does not change the value of the PV.

any ideas?

Thanks,
   giles...

---------------------------------------

from org.csstudio.opibuilder.scriptUtil import PVUtil
from org.eclipse.jface.dialogs import MessageDialog

pv = widget.getPV()
val = PVUtil.getLong(pv)

MessageDialog.openInformation(None, "info", "pv value is %s" % val)

if val == 3:
     pv.setValue(1)
elif val == 1:
     pv.setValue(3)
else:
     MessageDialog.openInformation(None, "Error", "no match")



--
----------------------------------------------------------
Pete R. Jemian, Ph.D.                <[email protected]>
Beam line Controls and Data Acquisition, Group Leader
Advanced Photon Source,   Argonne National Laboratory
Argonne, IL  60439                   630 - 252 - 3189
-----------------------------------------------------------
   Education is the one thing for which people
      are willing to pay yet not receive.
-----------------------------------------------------------



References:
CSS BOY Setting value of enum record in a python script giles.knap

Navigate by Date:
Prev: CSS BOY Setting value of enum record in a python script giles.knap
Next: MEDM: Passing PV Values to Shell Commands Poff, Mark A
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CSS BOY Setting value of enum record in a python script giles.knap
Next: MEDM: Passing PV Values to Shell Commands Poff, Mark A
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·