Lua interface is a way how to control the electronics in more general way than what the Gwyscope GUI offers. The GUI provides some support to test it when Lua would be used for scanning, as a special scan path. There interface is very simple and allows loading and storing a Lua script.
While Lua commands can do many different operations with the microscope, the interface provided here is useful only for running scans. After the script is loaded and “Scan” button is clicked, it sends the script to hwserver and asks for running it. Then it periodically asks for all the scanned data available at the hwserver, up to size of the data allocated, or up to end of the script, as reported by the hwserver. It also tries to visualize what was received - assuming that the physical size of the canvas on which the arbitrarily sampled data are defined in Raster scan settings.
Details on the Lua commands are part of the main Gwyscope interfaces documentation.