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  <20212022  2023  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: LUA: luascript record
From: Kuldeep Joshi via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Fri, 19 Feb 2021 08:56:49 +0000
Hello,
I have some questions regarding the luascript record.
I am using luascript record which is being loaded via a dbLoadRecords call from the iocsh.
I wish to modify the CODE field during operation. I have configured RELO to Every Processing
I am having a separate luascript file which is invoked from the CODE field.

1) When the record.PROC is initiated from the phoebus the gui freezes till the complete script gets executed. Is the CA set to PROC field a blocking call??
2) After the completion of execution all the missed data is seen in phoebus databrowser. I guess the data is captured but the GUI is not refreshed.
3) will handling of the luascript record in a separate thread help (ie in IOC or phoebus)?? lets say using something like luaspawn.
4) can we use pcall for handling exceptions/errors. As from my experience I see that the record processing freezes in case of any exception(say a nil value access)/errors even write to FRLD is not helping. That can we recover from exceptions in luascript record without restarting the IOC?

Any other way to solve the issue will also be welcomed.

Regards and thank you in advance

Kuldeep Joshi

Navigate by Date:
Prev: RE: Identical Process Variable names on Multiple Servers Manoussakis, Adamandios via Tech-talk
Next: Re: Accessing waveform record values in C Hu, Yong 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: 回复: 回复: How to capture messages generated by PyEpics? Michael Davidsaver via Tech-talk
Next: Alive Server Installation Smith, William 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  <20212022  2023  2024 
ANJ, 19 Feb 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·