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 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
<== Date ==> <== Thread ==>

Subject: RE: Why we want Lua on the IOC
From: "Lang, Keenan C." <klang@aps.anl.gov>
To: "Peterson, Kevin M." <kmpeters@anl.gov>, "Hill, Jeff" <johill@lanl.gov>, Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
Cc: "Tech Talk \(tech-talk@aps.anl.gov\)" <tech-talk@aps.anl.gov>
Date: Fri, 24 Feb 2017 20:53:15 +0000
It's not Jeff's code, but if anyone wants to play around with Lua in EPICS, there's a Lua module in the synApps github project that has implemented much of the same stuff. 

https://github.com/epics-modules/script

It has a lua replacement for the calc record, a lua IOC shell (though it requires the current development version of base-3.16), library linkages into asyn for communication with devices, and device support to use lua with regular record types. It's also been the basis for a motor driver that allows lua to be used to write motor controllers.

https://github.com/epics-modules/motor/pull/40

Documentation is a bit spotty, though. But the examples should be enough to get someone started.

Keenan
________________________________________
From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on behalf of Kevin Peterson [kmpeters@anl.gov]
Sent: Friday, February 24, 2017 10:59 AM
To: Hill, Jeff; Ben Franksen
Cc: Tech Talk (tech-talk@aps.anl.gov)
Subject: Re: Why we want Lua on the IOC

Jeff,

The things you've implemented so far sound really interesting and
useful.  Is any of the code on github?

Kevin

On 2/23/17 4:19 PM, Hill, Jeff wrote:
> Hi Ben,
>
> For reference, I have presented some talks on this topic at the last few EPICS meetings.
>
> So far I have implemented the following.
> o A Lua-based CA server event filtering system where a small Lua snippet in the channel name postfix serves as the filter
> o A Lua-based IOC shell, callable from the legacy IOC shell, which can also invoke all of the registered IOC shell commands
> o A Lua-based scripting record, where Lua provides a comprehensive feature set, compared to CALC.
>
> Thanks for your interest,
>
> Jeff
>



References:
RE: Why we want Lua on the IOC Hill, Jeff
Re: Why we want Lua on the IOC Kevin Peterson

Navigate by Date:
Prev: Re: memory leak after unloading of ca.lib Michael Davidsaver
Next: RE: Why we want Lua on the IOC Hill, Jeff
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
Navigate by Thread:
Prev: Re: Why we want Lua on the IOC Kevin Peterson
Next: RE: Why we want Lua on the IOC Hill, Jeff
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
ANJ, 24 Feb 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·