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: [email protected] [[email protected]] on behalf of Kevin Peterson [[email protected]]
Sent: Friday, February 24, 2017 10:59 AM
To: Hill, Jeff; Ben Franksen
Cc: Tech Talk ([email protected])
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>
2018
2019
2020
2021
2022
2023
2024
- 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>
2018
2019
2020
2021
2022
2023
2024
|