> For the complete documentation index, see [llms.txt](https://help.trikset.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.trikset.com/en/ev3/run-upload-programs.md).

# Launching and uploading programs to the LEGO EV3

{% hint style="info" %}
This article is automatically translated from Russian by Google Translator.
{% endhint %}

To work with the LEGO EV3 controller, in the TRIK Studio settings, go to "Robots" and select the LEGO EV3 platform.

![](/files/-MUYhZXA1mdmImIeO5_b)

There are several options for executing programs for the LEGO EV3 controller:

* Step-by-step interpretation of a diagram with the simulation of the robot's behavior on a two-dimensional model.
* Loading the program on the robot and its further autonomous execution without communication with the computer.

## Interpretation with the simulation of robot behavior <a href="#id-2d" id="id-2d"></a>

{% hint style="info" %}
In 2D Model Robot mode, commands are not sent to the robot, but are executed step by step for the virtual model displayed on the screen. See "[2D Model](/en/studio/2d-model.md)" for more information.
{% endhint %}

1\. Turn on the two-dimensional model mode.

![](/files/-MUYhdPnzTOIlBgoHUsf)

2\. Click the "Execute" button.

![](/files/-MUYhidEVtro8sDluJAn)

3\. The 2D model window will open and the program will start.

![](/files/-MUYhppAuM9U7oPcIMYr)

4\. When you switch to edit mode, you can track the steps of the program's execution.

![](/files/-MUYi-5jJL1QwKhcZ-Oe)

## Upload to controller <a href="#upload" id="upload"></a>

From TRIK Studio you can download a ready-made program to the robot to execute it autonomously in the future without communication with a computer.

{% hint style="warning" %}
**Warning!** You need [Java](https://java.com/ru/download/) software to download programs to the controller.
{% endhint %}

1\. Enable Bluetooth or USB offline execution mode (depending on the desired type of connection to the robot to download the program).&#x20;

![](/files/-MUYi8V6Kyiujztyv_ml)

2\. Click the "Run Program" button.

The program will generate code in the internal EV3 language, load it onto the robot and run it immediately for execution.

![](/files/-MUYiCD-CGxtq5agfd5p)

3\. If you only want to download a program without running it, use the "Download Program" button.

![](/files/-MUYiIlL0cgzJsssqt8R)

**\*\*\***

Experts in EV3 can look at the code generated in the internal EV3 language with the "Generate to EV3 bytecode" button.

![](/files/-MUYiSqZYMRCNSKIXzRP)
