The application editor is used to write Lua applications. Color-coding is provided to improve the user-experience.
Press CTRL+Space to show code-completion suggestions.
The application can be saved by pressing the Save button or by using the CTRL+S keyboard shortcut.
The currently open application can be downloaded by pressing the Download button.
The currently open application can be executed by pressing the Run button.
Depending on the status of the "Reset Lua Environment on Run" switch, either of the following happens when running a Lua application.
|On||The Lua environment is reset before running the application.|
|Off||The Lua environment is not reset before running the application.|
When the Reset Lua Environment on Run switch is on (default behavior), the whole context of the Lua environment is cleared before running the application. This means no data from previously ran applications is accessible.
When the Reset Lua Environment on Run switch if off, the existing Lua environment is used to execute the application. This means data from previously ran application is accessible.
The console of the Lua Development Environment provides valuable feedback for the developer.
When running an application, errors in the Lua script are described.
Using the print function you can output text in the console.
Content of the console can be cleared by pressing the "Clear Console Output" button:
The Lua Development Environment needs to be connected to the Screvle device in order to receive data to show in the console. The Console Status indicator shows whether or not the console is ready to receive data.
|OK||The console is receiving information from Screvle.|
|Error||The console has lost connection with Screvle.|
When the console is not connected, no information can be received. The Lua Development Environment will automatically try to reconnect to Screvle.
Screvle can be rebooted remotely by pressing the reboot button.