# TRIK Studio interface

## TRIK Studio modes

The TRIK Studio interface depends on the selected mode. TRIK Studio has two modes:

1. [**Editing mode**](#mode-edit)\
   It is intended for creating a robot control diagram and executing it in the generation mode.<br>
2. [**Debug mode**](#mode-debug)\
   It is intended for executing and debugging a program on a 2D model or in interpretation mode on a real robot.

### Switching between modes

There are three ways to switch modes:

1. Keyboard shortcuts `Ctrl+1` / `Ctrl+2`.
2. [Mode switching panel.](#mode_switching_panel)
3. [Status bar](#status-bar).

## Editing mode <a href="#mode-edit" id="mode-edit"></a>

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MSmM7SagspQcUWTkZmt%2F-MSmbyXtuc80VdG5DCtD%2F04%201%20en%20trik-studio-interface%204d.png?alt=media\&token=a2f93066-0377-4305-9126-d1006631762e)

TRIK Studio in edit mode has the following interface elements:

* [Editor window/scene](#editor-window)
* [Main menu](#main-menu)
* [File panel](#panel-file)
* [Edit panel](#panel-edit)
* [View panel](#panel-view)
* [Interpreter panel](#panel-interpreter)
* [Generators panel](#panel-generators)
* ["Others" panel](#panel-other)
* [Panel for switching between editor and debug mode](#mode_switching_panel)
* [Property editor panel](#panel-property-editor)
* [Sensor settings](#panel-configure-devices)
* [Palette (set of blocks for diagrams creation)](#panel-palette)
* [Variables panel](#panel-variables)
* [Status bar](#status-bar)

### Editor window/scene <a href="#editor-window" id="editor-window"></a>

The scene displays the diagram and allows you to edit it.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOBx0wzScSm2kT6GDka%2F04%202%20en%20scene.png?alt=media\&token=f29156b8-43f1-4818-8e2a-0b6c893a1424)

Read about creating a new project and working with the diagrams in the articles:

{% content-ref url="start" %}
[start](https://help.trikset.com/en/studio/start)
{% endcontent-ref %}

{% content-ref url="programming-visual/blocks-add-delete" %}
[blocks-add-delete](https://help.trikset.com/en/studio/programming-visual/blocks-add-delete)
{% endcontent-ref %}

Editor mode also displays the current executable block when interpreting diagrams.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOgLdej7kc2zOVwvfK8%2F-MOhvXvJa2CWDpk-6cYF%2F04%203%20en%20chart-interpretation%205.gif?alt=media\&token=03f4e4fc-8f44-4134-ab22-684b07879f30)

## Main menu

The main menu of TRIK Studio contains a set of basic operations and environment settings:

* [File](https://help.trikset.com/en/studio/main-menu#menu-file)
* [Edit](https://help.trikset.com/en/studio/main-menu#menu-edit)
* [View](https://help.trikset.com/en/studio/main-menu#menu-view)
* [Tools](https://help.trikset.com/en/studio/main-menu#menu-tools)
* [Settings](https://help.trikset.com/en/studio/main-menu#menu-settings)
* [Help](https://help.trikset.com/en/studio/main-menu#menu-about)

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOBxNOidZxY9XGVukad%2F04%204%20en%20main-menu.png?alt=media\&token=5430ae92-35bc-4d81-b27c-d007cca83de3)

For more information, see the article:

{% content-ref url="interface/main-menu" %}
[main-menu](https://help.trikset.com/en/studio/interface/main-menu)
{% endcontent-ref %}

### File panel <a href="#panel-file" id="panel-file"></a>

The "File" panel repeats the main operations available from the "[File](https://help.trikset.com/en/studio/main-menu#menu-file)" menu.

&#x20;<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TRucvlIfjg--R7FZd%2FnewProject.svg?alt=media&#x26;token=c15b3638-6595-4b4f-bdce-819ec0288afc" alt="" data-size="line"> Create a new project.\
&#x20;<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TRomYB1HLsa4cArX2%2Fopen.svg?alt=media&#x26;token=46350988-1875-4f39-b6a1-2d5859267de2" alt="" data-size="line"> Open a saved project.\
&#x20;<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TRs3g2PQ9doHlbjcZ%2Fsave.svg?alt=media&#x26;token=2731ac8c-8dce-4b81-b261-4ba401e5599b" alt="" data-size="line"> Save the current project.

### Edit panel <a href="#panel-edit" id="panel-edit"></a>

<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TSC5RwwyN5X-YcCh6%2Fundo.png?alt=media&#x26;token=5670685e-fecc-45e0-bb2b-12fa2f17bbc4" alt="" data-size="line"> Cancel the operation.\
&#x20;<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TSFwoXPzkrdbPn2cV%2Fredo.png?alt=media&#x26;token=717d9b14-698d-4d56-84d6-c028196a64bf" alt="" data-size="line">Repeat the operation.

### View panel <a href="#panel-view" id="panel-view"></a>

The View panel contains buttons that allow you to scale diagrams.

<img src="https://thumb.tildacdn.com/tild3030-6165-4761-b762-383737303632/-/resize/65x/-/format/webp/image.png" alt="" data-size="original">Zoom in / out.

You can also zoom the scene using:

1. Hold down the `Ctrl` key and roll the mouse wheel.
2. Keyboard shortcut `Ctrl+=` и `Ctrl+-`.

### Interpreter panel <a href="#panel-interpreter" id="panel-interpreter"></a>

The Interpreter panel contains the commands for starting and stopping the execution of a program, buttons for switching interpretation modes between a two-dimensional model and a real robot, as well as a button for opening [robot settings](https://help.trikset.com/en/settings#robots) available from the Tools menu.

When working with a real robot in interpretation mode, this panel also contains a "Connect" button.

<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TWxWgx9KVeBfQbJrk%2Frobots_run.png?alt=media&#x26;token=db927b49-d6ea-4dca-a1a9-5a4e84cfc045" alt="" data-size="line"> Run program.\ <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TX0G3FoWI7aMJI4Mk%2Frobots_stop.png?alt=media&#x26;token=d0e61447-74a3-4f2a-a75c-d37db0862291" alt="" data-size="line"> Stop program.\ <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TKxm2agcu5VoXjs3t%2F-M0TX5bS1yQoAY5cNCNc%2F2d-model.svg?alt=media&#x26;token=e2a6612d-3cc3-4bd9-805f-e33d3bc72d86" alt="" data-size="line"> 2D model mode.\ <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TX8mRft7pVGkywKwa%2F-M0TX9rSQOMfgBTT3E5g%2Fswitch-real-trik.svg?alt=media&#x26;token=359c477b-9cec-405b-868d-10ea3667d5b9" alt="" data-size="line"> Real robot mode.\ <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TXCEajF5DKHRwlrBK%2F-M0TXDYJbs_WF2a1oa2D%2Frobots_settings1.png?alt=media&#x26;token=60876dcb-c86f-4dbe-93ad-36665e244247" alt="" data-size="line"> Robot settings.

### Generators panel <a href="#panel-generators" id="panel-generators"></a>

{% hint style="info" %}
The commands in this panel change depending on the program configuration.
{% endhint %}

The Generators panel contains commands for generating code and loading the program to the robot.

![](https://thumb.tildacdn.com/tild3734-6135-4838-a161-633336393062/-/resize/96x/-/format/webp/image.png)

<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TXCEajF5DKHRwlrBK%2F-M0TXb7ok6PDNzhzCIJZ%2FgenerateQtsCode.svg?alt=media&#x26;token=5618d28a-b1ff-4f5c-8db6-9601adf3c734" alt="" data-size="line"> Generate code.\ <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TXCEajF5DKHRwlrBK%2F-M0TXep32vy7B9GFzAUH%2FuploadProgram.svg?alt=media&#x26;token=d850b4e4-e44d-47f9-a44e-f4d2121e51a7" alt="" data-size="line"> Upload program to the robot.

### "Other" panel <a href="#panel-other" id="panel-other"></a>

"Other" panel may contain various information depending on the chosen platform.

For example, for the [TRIK kit](https://help.trikset.com/en/trik/about) this panel displays the IP address of the controller to which you are connecting.

![](https://thumb.tildacdn.com/tild3736-3338-4131-b737-303964656239/-/resize/129x/-/format/webp/image.png)

### Panel for switching between editing and debugging modes <a href="#mode_switching_panel" id="mode_switching_panel"></a>

The panel for mode switching displays the current TRIK Studio mode and allows you to switch between editing and debugging modes.

<img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TXCEajF5DKHRwlrBK%2F-M0TY1WonWoSm6Er3C0T%2Fmain_tabbar_edit.svg?alt=media&#x26;token=1fce5196-1215-403d-aea9-75c4bd529942" alt="" data-size="line"> Editor.\ <img src="https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M0TXCEajF5DKHRwlrBK%2F-M0TY4iRvGypRauhlbad%2Fmain_tabbar_debug.svg?alt=media&#x26;token=99ce9b13-c10f-4f1c-95d1-ac549ce90d80" alt="" data-size="line"> Debug.

### Property editor panel <a href="#panel-property-editor" id="panel-property-editor"></a>

The property editor is used to display and edit the property values ​​of selected objects (blocks, links).&#x20;

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOBxhGKIt3Nz9KZnW4Z%2F04%205%20en%20panel-property-editor.png?alt=media\&token=3532841e-55c8-400a-a66d-d9a6f4121a83)

About working with the property editor see article:

{% content-ref url="programming-visual/editing-element-properties" %}
[editing-element-properties](https://help.trikset.com/en/studio/programming-visual/editing-element-properties)
{% endcontent-ref %}

### Sensors settings panel <a href="#panel-configure-devices" id="panel-configure-devices"></a>

Sensor settings allow you to specify which sensors are used on which port. The same can be done from the robot settings dialog.

{% hint style="info" %}
Available set of sensors depends on the selected platform in the settings on the [Robots](https://help.trikset.com/en/settings#robots) tab.
{% endhint %}

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOBxqwJtpVcD8C_9elT%2F04%206%20en%20panel-sensors-TRIK.png?alt=media\&token=355f82cf-2a3b-494c-8c45-1b7853c63c3c)

### Palette panel <a href="#panel-palette" id="panel-palette"></a>

The Palette panel contains a set of available blocks and the relationships between them, which can be added to the diagram.

{% hint style="info" %}

1. The composition of the palette may vary depending on the platform selected in the [settings](https://help.trikset.com/en/settings#robots).
2. Blocks that are not available in the selected execution model (2D model or on a real robot) are highlighted in gray.
   {% endhint %}

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOBy0g95wR-6SathHkd%2F04%207%20en%20panel-palitra.png?alt=media\&token=4d9ef85b-dc43-4dbf-ba4b-bc8e20f24d25)

How to add and remove blocks to the scene in TRIK Studio read in the article:

{% content-ref url="programming-visual/blocks-add-delete" %}
[blocks-add-delete](https://help.trikset.com/en/studio/programming-visual/blocks-add-delete)
{% endcontent-ref %}

### Variables panel <a href="#panel-variables" id="panel-variables"></a>

Displays the list of variables used when executing the diagram with their current values, including [sensor variables](https://help.trikset.com/en/studio/programming-visual/expression-syntax/sensory-variables). When executed in the interpretation mode on a two-dimensional model or a real robot, they are taken from the robot in real-time. Not used in the generation mode.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOBy9G2bC5kDysrC7Gb%2F04%208%20en%20panel-variables.png?alt=media\&token=9e12ba88-e83b-4f04-b467-13bc0c86d800)

### Status bar <a href="#status-bar" id="status-bar"></a>

The status bar displays the current TRIK Studio mode ([editing](#mode-edit) or [debugging](#mode-debug)) and allows you to switch between modes. To switch between them, just click on the status bar.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOByEkFazrsbP8h8_VC%2F04%209%20en%20statusbar.png?alt=media\&token=ab31854e-ccf8-4afa-9456-3dec13a12beb)

## Debug mode <a href="#mode-debug" id="mode-debug"></a>

The elements of the TRIK Studio interface in debug mode repeat the elements in edit mode, except for the editor window, property editor panels and palette. Instead of these elements, the next elements are displayed:

* [2D model window](#window-2-d-1)
* [Error panel](#window-error)
* [Robot settings panel](#panel-settings-robot)
* [Plots panel](#panel-graphics)

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOByQOrKjM1Ov17VAH4%2F04%20A%20en%202D.png?alt=media\&token=0e5523c9-7ce5-4d55-811e-18af7e91725b)

### 2D model window <a href="#window-2-d-1" id="window-2-d-1"></a>

The 2D model window opens if a 2D model is selected as the program execution mode.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOBykFVLzLEPmHAyogz%2F04%20B%20en%202d.png?alt=media\&token=784882b2-05b3-4219-84d9-eff9009b0712)

The window allows you to set the environment in which the robot will be executed, set the robot sensors and observe how the program written in edit mode will work.

Read more about the 2D model in the article:

{% content-ref url="2d-model" %}
[2d-model](https://help.trikset.com/en/studio/2d-model)
{% endcontent-ref %}

{% hint style="info" %}
In the Interpretation and Generation modes for the real robot, this window is not displayed, an executable diagram is displayed instead.
{% endhint %}

### Robot settings panel <a href="#panel-settings-robot" id="panel-settings-robot"></a>

The robot settings panel displays the type of controller and robot parameters that depend on the selected [platform](https://help.trikset.com/en/about#platforms).

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOBwd6tKn6wqPVu4pXx%2F-MOByu1vMrbTzW9w_OU5%2F04%20C%20en%20panel-controller.png?alt=media\&token=6188960d-4b8c-4056-905b-083225477112)

#### Opening robot settings panel

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOY4HQlv-0xRPxysaKh%2F-MOYVqvcSI06kfSHULfA%2F04%20D%20en%20panel-controller-open%202.gif?alt=media\&token=455c4151-3f5f-4548-9525-87fea8179ee6)

### Error panel <a href="#window-error" id="window-error"></a>

In the case of syntactic and semantic errors in the TRIK Studio, a window with the corresponding messages appears.

To view the block where the error occurred, click on the message.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOYW7F4ynJwksvZRBQ5%2F-MOc_z5q3eOm1C0fZavu%2F04%20F%20en%20panel-error%206.gif?alt=media\&token=559bc606-e8b7-44a4-8ad6-2d88dfc39e9d)

### Plots panel <a href="#panel-graphics" id="panel-graphics"></a>

The Plots window displays the values sent by the sensors in real-time.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MOCMpAQjrLEzkTjid8o%2F-MOCO9H44aYntUcvJ63Q%2F04%20G%20en%20panel-graphics.png?alt=media\&token=4a11ce2b-1635-4d0a-bd06-6fde1c319281)

Read more in the article:

{% content-ref url="interface/graphics" %}
[graphics](https://help.trikset.com/en/studio/interface/graphics)
{% endcontent-ref %}
