# Launching and uploading programs to the TRIK controller

To work with the TRIK controller in the TRIK Studio settings, go to the ["Robots"](https://help.trikset.com/en/studio/settings#robots) section and select the TRIK platform.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXC9uK3EVjlrnizTl%2F7B%201%20En%20connect-with-TRIK%202.png?alt=media\&token=aa8c8040-9d07-41e4-b1b5-b92c7cff3cea)

There are several options for executing programs for the TRIK controller:

* Step-by-step diagram interpretation with a simulation of robot behavior on a 2D model.
* Uploading the program to the robot and its further autonomous execution without communication with the computer.

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

{% hint style="info" %}
In the robot's 2D model mode, commands are not transmitted to the robot but are executed step-by-step by the virtual robot displayed on the screen. For more information, see the article ["2D Model"](https://help.trikset.com/en/studio/2d-model).
{% endhint %}

1\. Turn on 2D model mode.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXHLPl1-WoNGq0gHd%2F7B%202%20En%202d-1%204.png?alt=media\&token=9e3ee576-674a-49aa-bf3b-6a68edee758e)

2\. Click on the "Run" button.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXS6uSxjeJ47E_5oJ%2F7B%203%20En%202d-2%204.png?alt=media\&token=b6c61ef8-f5d8-4914-a7ea-04dd2770f264)

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

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXZRqoSQRbP-1HyiF%2F7B%204%20En%202d-3%203.gif?alt=media\&token=d19af9e8-9297-4a25-9ad5-52f6095833f5)

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

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXda_jOUOh4-CtgQq%2F7B%205%20En%202d-4%203.gif?alt=media\&token=fc9f4f9d-707b-4eb9-af2c-34a9944febc3)

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

From TRIK Studio, you can upload a  program to a robot in order to execute it autonomously later without connection to a computer.\
1\. [Connect](https://help.trikset.com/en/trik/wi-fi) the TRIK controller to TRIK Studio.\
2\. Click on the "Upload Program" button.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXihFqxfYUIPG_Bxz%2F7B%206%20En%20upload%203.png?alt=media\&token=57eee98c-bc51-4355-9271-cb6370c6c20c)

3\. To run the program on the controller go to the "Files" menu, select the desired program and press the "Enter" button.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXpgsbqTmYsdmqEU3%2F7B%207%20En%20File.png?alt=media\&token=524063ea-28c5-4795-a91d-bce3a8861fff)![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYWhH_YE4YpuNthvSS%2F-MUYXvB3aGncs6w7zbzj%2F7B%208%20En%20File2.png?alt=media\&token=6b548847-6a56-4622-a7b2-df739c367acf)
