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

Subject: EPICS Lua global variables
From: James King - UKRI STFC via Tech-talk <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 16 Oct 2019 16:34:42 +0000

Hello Tech-talk,

 

I have been working on getting an IOC booting with Lua. Lua guidelines suggest the use of local variables rather than global. I notice that Macros are available as global variables and we cannot use local variables as they drop out of scope due to the nature of Lua interactive mode scopes.

 

Does anyone have any experience of using local variables in Lua IOC boot scripts? Or any information as to how global variables are contained in the Lua shell?

 

Many thanks for any replies and help given.

 

Kind regards,

James

 


Replies:
Re: EPICS Lua global variables Lang, Keenan C. via Tech-talk

Navigate by Date:
Prev: Re: fast PV transition skipped in EPICS 3.16 Reiter, Simon Patrik via Tech-talk
Next: Re: EPICS Lua global variables Lang, Keenan C. 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: areaDetector module ADAravis Jörn Dreyer via Tech-talk
Next: Re: EPICS Lua global variables Lang, Keenan C. 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  <20192020  2021  2022  2023  2024 
ANJ, 16 Oct 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·