> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/hypersim/model-and-simulation/import-models-from-external-software-or-code/import-from-simulink-hyperlink/import-into-hypersim.md).

# Import into HYPERSIM

This page describes how to import a **Simulink model** into **HYPERSIM** using the **Simulink Import** tool.

{% stepper %}
{% step %}

### Import the model into HYPERSIM

1. Open a new or existing model in HYPERSIM.
2. In the **HYPERSIM** tab, click **Simulink** in the **Import/Export** section.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-b2c2228fa66c52013622bd7ea48a02e278a6c0b7%2Fsimulink-import.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Browse to the location of the generated `ucm_%model_name%.def` file, select it, and click **Open**.

The Simulink model is imported as a UCM block and placed in the current HYPERSIM schematic.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-b09bf4b47c75e094ae873de38cd7a204e0d9fc20%2Fsimulink-import-block.png?alt=media" alt=""><figcaption></figcaption></figure>

A new folder named `%model_name%` is created in the HYPERSIM model directory under the **`libs`** folder. This folder contains the `ucm_%model_name%.def` file along with all required supporting files.
{% endstep %}

{% step %}

### Configure the imported block using the UCM Builder (optional)

Exporting a Simulink model generates a **User‑Coded Model (UCM)** definition file (`.def`), which enables additional configuration options in HYPERSIM. In particular, the execution time can be specified to help the task mapper efficiently distribute computation across available processor cores, which is especially useful for complex models or models instantiated multiple times.

To configure the imported block, right‑click it and select **UCM > Edit (UcmBuilder)**. For additional information, refer to the [Import User‑Coded Models (UCM)](https://www.opal-rt.com/docs/hypersim/model-and-simulation/import-models-from-external-software-or-code/create-user-coded-models-ucm.md) documentation.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/hypersim/model-and-simulation/import-models-from-external-software-or-code/import-from-simulink-hyperlink/import-into-hypersim.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
