Textual programming

Creating a new text program, generating diagrams in code and supported programming languages

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.

Create a new text program

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.

Generate code from the diagram

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.

Supported programming languages

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.

TRIK controller

For the TRIK platform, generation is possible in:

Lego EV3 controller

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.

Lego NXT controller

For Lego NXT, generation in C language is supported using the ECRobot library.

Geoscan Pioneer quadcopter

For the quadcopter Geoscan Pioneer, generation in Lua is possible.

Last updated