EPICS Home

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

Subject: ScrollBar in Phoebus - cannot set $(pv_value) in script
From: Amien Crombie via Tech-talk <tech-talk at aps.anl.gov>
To: EPICS Tech-Talk <tech-talk at aps.anl.gov>
Date: Thu, 24 Mar 2022 11:22:38 +0200

Hi

i'm using Phoebus and have a ScrollBar widget.

I'm using master 2021-07-29 17:51 Phoebus version running on my Ubuntu 20.04 pc. (jdk 16.02)

I however cannot set the scrollbar's value in my script.

Here a part of my python script :

from org.csstudio.display.builder.runtime.script import PVUtil
from org.csstudio.display.builder.runtime.script import ScriptUtil

print ("Dup Range")
scrollB = ScriptUtil.findWidgetByName(widget, "Scrollbar")

scrollB.setPropertyValue("$(pv_value)", 1.0)   #  I need to set my scrollBar to 1.0 after range change trigger..not working

and the following error I get:

2022-03-24 11:17:11 WARNING [org.csstudio.display.builder.runtime] Script execution failed
Display 'EmbeddedDisplay Embedded-Harp.bob', Widget 'Spinner_4' (choice), JythonScript Live/duplicate_range.py
Traceback (most recent call last):
  File "Live/duplicate_range.py", line 7, in <module>
    at org.csstudio.display.builder.model.Widget.getProperty(Widget.java:590)
    at org.csstudio.display.builder.model.Widget.setPropertyValue(Widget.java:722)
    at jdk.internal.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Widget 'Scrollbar' (scrollbar) has no '$(pv_value)' property



Thanks

Amien Crombie (iThemba-LABS, South Africa)




Replies:
Re: [EXTERNAL] ScrollBar in Phoebus - cannot set $(pv_value) in script Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: About checksum error 李姣赛 via Tech-talk
Next: motorRecord with phytron support: record send goto 0 command before reference is done Bernhard Kuner via Tech-talk
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  <20222023  2024 
Navigate by Thread:
Prev: Re: About checksum error Ralph Lange via Tech-talk
Next: Re: [EXTERNAL] ScrollBar in Phoebus - cannot set $(pv_value) in script Kasemir, Kay via Tech-talk
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  <20222023  2024