Textual programming
Creating a new text program, generating diagrams in code and supported programming languages
Last updated
Creating a new text program, generating diagrams in code and supported programming languages
Last updated
The text-based programming mode allows you to edit the program generated from the diagram before downloading it to the robot or write the program in text form from scratch.
1. Create a diagram containing the "Initial Node" and "Final Node" blocks.
2. Select a real robot mode.
3. Click on the “Generate Code” button. After that, an empty program template that contains all the necessary declarations will appear.
1. Select the real robot mode.
2. Press the "Generate code" button.
When the diagram is regenerated, manual changes will not be lost if the text file is saved. The result of the new generation will be saved to another file.
The supported text programming language is platform-dependent. One platform can have multiple target text languages.
Attention! Available generators depend on the installed plug-ins.
For the TRIK platform, generation is possible in:
Experts in EV3 can look at the code generated in the internal language of EV3 using the "Generate into EV3 byte code" button. Theoretically, it can be edited and run for execution or even used for EV3 text programming, but it is inconvenient to do this - the language was created to automatically generate, rather than write programs.
For Lego NXT, generation in C language is supported using the ECRobot library.
For the quadcopter Geoscan Pioneer, generation in Lua is possible.