Ray,
About Lua..
I wanted some way to let users write control programs.
I had experimented with ways to let users write in C++.
That was not going to work.
I searched for scripting languages and found Lua (and a few others).
Lua stood out because it had been successfully compiled with
Borland (now Embarcadero) C++. That was the real selling point.
I was able to embed a Lua interpreter in my RTC program fairly
easily. I wrote functions that could be called from the Lua scripts
to control the engines, TIU and AIU. It all works pretty well.
So a user can write a program in Lua, run it from RTC and call
functions that startup/shutdown engines, control switch tracks,
activate bells/whistles/horns. Basically they can do anything
via program control and they can do from the Remote.
As it turned out, Lua is a fairly well known embedded system that is
used in a lot of applications. The Lua author wrote a very nice book
about the language. Lua can be very simple for beginners and it has
a lot of very advanced features.
It is similar to Python which would probably have worked just as well
(I don't know if there is an embedded version of Python which would
compile with my C++ compiler). I've never used Python.
Mark
> To view this discussion on the web visit
https://groups.google.com/d/msgid/remote-train-control/0757F7018B3247B1B4680BE6C96BC24A%40Sys1.