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

Subject: Python script to set start & end time of data browser
From: Vishnu Patel via Tech-talk <[email protected]>
To: Tech Talk <[email protected]>
Date: Wed, 8 Oct 2025 09:20:56 +0000

Hello,

I am trying to set start and end time of my trends in data browser with the python script 

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

trend = ScriptUtil.findWidgetByName(widget, "trend")
start_time_text=PVUtil.getString(pvs[0])
end_time_text=PVUtil.getString(pvs[1])

# Set the start/end time properties of the Data Browser
trend.setPropertyValue("start_time", start_time_text)
trend.setPropertyValue("end_time", end_time_text)



Here I am setting start and end time of data browser by pressing the button.

But I am getting an error,

"java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Widget 'trend' (databrowser) has no 'start_time' property
"

How I can set time axis using python script?

Thanks
Vishnu

Navigate by Date:
Prev: Re: Basic EPICS bootstrap (rant) Han Lee via Tech-talk
Next: Re: Basic EPICS bootstrap (rant) Ulrik Pedersen 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  2022  2023  2024  <20252026 
Navigate by Thread:
Prev: Re: Waveform VAL fields in newer versions of EPICS Michael Davidsaver via Tech-talk
Next: Re: Python script to set start & end time of data browser 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  2022  2023  2024  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·