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: Re: Multi-threading in BOY Python scripts
From: "Kasemir, Kay" <[email protected]>
To: Márcio Paduan Donadio <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 28 Jul 2015 15:53:24 +0000
> On Jul 28, 2015, at 10:29 AM, Márcio Paduan Donadio <[email protected]> wrote:
> 
> 
>         Dear Folks,
> 
>     is there a way to run a python script in a BOY widget in a thread 
> separate from BOY? We are facing CS-Studio freezing by scripts that take 
> too much time to run.

See BOY Examples/5_6_UseThreadInScript.opi

The use of scripts, however, is discouraged in general.
The script API is not guaranteed to stay as it is.
In fact any attempt to improve the BOY performance (https://github.com/ControlSystemStudio/cs-studio/issues/1230) is almost guaranteed to break your scripts.
Don’t implement any processing logic in a script which should really be on an IOC.
If you have to ask how to do things in a script, you’re likely to cause more trouble than good.

Thanks,
Kay

Replies:
Re: Multi-threading in BOY Python scripts Márcio Paduan Donadio
References:
Multi-threading in BOY Python scripts Márcio Paduan Donadio

Navigate by Date:
Prev: Re: MVME-5500 Universe II Andrew Johnson
Next: MVME-5500 Universe II Amit Chauhan
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: Multi-threading in BOY Python scripts Márcio Paduan Donadio
Next: Re: Multi-threading in BOY Python scripts Márcio Paduan Donadio
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 ·