-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
synApps luascript record as ophyd Device #532
Comments
The |
Note the docker xxxx IOC (synApps 6.2) already has 20 of these root@zap:/opt/iocxxx# less /opt/synApps/support/lua-R3-0-1/luaApp/Db/luascripts10.db
root@zap:/opt/iocxxx# grep set1 dbl-all.txt
gp:set1:userScriptEnable
gp:set1:EnableUserScripts
gp:set1:DisableUserScripts
gp:Slit1Vset1
gp:Slit1Hset1
gp:set1:userScript0
gp:set1:userScript1
gp:set1:userScript2
gp:set1:userScript3
gp:set1:userScript4
gp:set1:userScript5
gp:set1:userScript6
gp:set1:userScript7
gp:set1:userScript8
gp:set1:userScript9
root@zap:/opt/iocxxx# grep set2 dbl-all.txt
gp:set2:userScriptEnable
gp:set2:EnableUserScripts
gp:set2:DisableUserScripts
gp:set2:userScript0
gp:set2:userScript1
gp:set2:userScript2
gp:set2:userScript3
gp:set2:userScript4
gp:set2:userScript5
gp:set2:userScript6
gp:set2:userScript7
gp:set2:userScript8
gp:set2:userScript9
root@zap:/opt/iocxxx# |
root@zap:/opt/iocxxx# grep lua *
common.iocsh:dbLoadRecords("$(LUA)/luaApp/Db/luascripts10.db", "P=$(PREFIX), R=set1:")
common.iocsh:dbLoadRecords("$(LUA)/luaApp/Db/luascripts10.db", "P=$(PREFIX), R=set2:")
envPaths:epicsEnvSet("LUA","/opt/synApps/support/lua-R3-0-1")
settings.iocsh:# search path for lua scripts |
Not needed immediately, pushing to next milestone. Needs example lua script to use for testing and example. @keenanlang Can you provide an example? |
|
-- defines a factorial function
function fact (n)
if n == 0 then
return 1
else
return n * fact(n-1)
end
end |
From the
|
The EPICS lua module has support for the
luascript
record. Build a Device for theluascript
record.synApps
lua
The text was updated successfully, but these errors were encountered: