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  2014  <20152016  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  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: CSS - Boolean switch
From: "Amien Crombie [TLABS]" <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Thu, 26 Feb 2015 12:42:27 +0200
Hi

I have a XYGraph on my opi that I want to 'enable' or 'disable' by clicking a button.
Looking at using the 'Boolean Switch', I cannot figure out what the 'state' is of my button
for instance : in my python code I call is:

from org.csstudio.opibuilder.scriptUtil import PVUtil

a = display.getWidget("xBoolSwitch")


if a.getPropertyValue("push_action_index") == "0":
   print "Enable Graph"
elif a.getPropertyValue("push_action_index") == "1":
   print "Disable Graph"


However I always get "Enable Graph" printout, even if my 'Boolean Switch' is pressed or not.

Thank
Amien


Replies:
Re: CSS - Boolean switch Kasemir, Kay

Navigate by Date:
Prev: RE: Error in compiling areaDetector Mark Rivers
Next: EPICS device support for DIM Florian Feldbauer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Error in compiling areaDetector Heinz Junkes
Next: Re: CSS - Boolean switch Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·