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: CSS BOY Setting value of enum record in a python script
From: <[email protected]>
To: <[email protected]>
Date: Thu, 17 Apr 2014 16:26:48 +0000
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")


-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 





Replies:
Re: CSS BOY Setting value of enum record in a python script Pete Jemian

Navigate by Date:
Prev: =?gb18030?b?UmU6UkU6IEhvdyB0byBzdG9wIGFjcXVpcmUgaW4g?==?gb18030?b?RGJsQ29ycmVsYXRpb24gTW9kZSBmb3IgTWFyQ0NE?==?gb18030?b?IGluQXJlYURldGVjdG9yCW1vZHVsZQ==?= =?gb18030?b?1tzGvQ==?=
Next: Re: CSS BOY Setting value of enum record in a python script Pete Jemian
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: Re: EPICS support plans for Solaris Bill Lavender
Next: Re: CSS BOY Setting value of enum record in a python script Pete Jemian
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 ·