- Upgrade Firmware Link
- Refresh Application List
- Add/Remove Application
- Save/Run/Download Application
- Name of application shown in editor
- Reset Lua Environment on run
- Settings Link
- Application List
- Application Editor
- Clear Console
- Console Status
- Reboot Screvle
The application editor is used to write Lua applications. Color-coding is used to improve the user-experience.
Editing an application
Press CTRL+Space to show code-completion suggestions.
Saving the application
The application can be saved by pressing the Save button or by using the CTRL+S keyboard shortcut.
Downloading an application
The currently open application can be downloaded by pressing the Download button.
Running an application
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.
Reset Lua Environment on Run
|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.
Clearing 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.