> For the complete documentation index, see [llms.txt](https://docs.buildings.ability.abb/collection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/create-edit-simulation.md).

# Create and Edit Simulations

[Open Device Simulator](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/open-device-simulator.md), then click **New Simulation** **\[C]** on the [main page](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/simulated-assets-and-connected-attributes.md). To connect more attributes of an asset already listed under **Connected Attributes**, click its **Simulation Connection** button **\[Q]** instead.

Use the **New Simulation** window to create a dedicated virtual asset or connect simulations to existing attributes. Use **Edit Simulation** to configure an attribute of a newly created virtual asset or change an existing simulation.

## Before You Start

* Check the [Device Simulator prerequisites](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator.md#before-you-start).
* For a virtual asset, choose an asset type that provides the attributes you need. The identity fields follow the same concepts as [creating a normal asset](https://docs.buildings.ability.abb/collection/mandatory-base/assets/create-assets.md).
* For an existing asset, choose the target attributes and review the [algorithm parameters](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/simulation-algorithms.md) before saving.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-585ef2180b4177e418adee84420e1ba7fada86da%2FDevice%20Simulator%20New%20Simulation.png?alt=media" alt="New Simulation window showing virtual asset fields [C1] and Add [C2], then existing-attribute connection fields [C4], Algorithm [C5], parameters [C6], and Add [C7]. Simulation type is selected at [C3]."><figcaption><p>The two simulation types in the New Simulation window.</p></figcaption></figure>

## Create a Simulated Asset

1. Select **New virtual asset** under **Simulation type** **\[C3]**.
2. Select **Asset Type** in the asset fields **\[C1]**.\
   ◈ The selected type determines the asset's available attributes.
3. Enter a **GAI** (Global Asset Identifier) in **\[C1]**.\
   ◈ Use an identifier that is unique for the asset in its site.
4. Enter an **Asset name** in **\[C1]**.
5. Enter a **Description** in **\[C1]**.
6. Select a **Site** in **\[C1]** if you want to associate the asset with a site.
7. Select or add **Tags** in **\[C1]** if you want to classify the asset.
8. Click **Add** **\[C2]**.\
   ▷ The virtual asset is created and appears under **Simulated Assets**.

The asset initially has **No simulations**. Open its [simulation detail page](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/asset-simulation-details.md) with the pencil action **\[O]**, then configure its attributes using **\[L]** and the [Edit Simulation procedure](#configure-or-edit-an-attribute-simulation).

## Connect to Existing Asset Attributes

{% hint style="warning" %}
Connected simulations write test values to existing attributes. Check whether other data sources write to the same attributes before using them for simulation.
{% endhint %}

1. Select **Connect to existing asset attribute** under **Simulation type** **\[C3]**.\
   ◈ If you opened the window with **Simulation Connection** **\[Q]**, this type and the asset are already selected.
2. Select the **Asset** in **\[C4]**.
3. Select an **Attribute** in **\[C4]**.
4. Click **Add additional attribute** in **\[C4]** if you want to select more attributes of the same asset.\
   ◈ Repeat this action for each additional attribute. All selected attributes receive the same algorithm and parameter settings.
5. Select an **Algorithm** **\[C5]**.\
   ◈ See [Simulation Algorithms](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/simulation-algorithms.md) for the available patterns.
6. Enter the algorithm's parameters **\[C6]**.\
   ◈ For **Interval** and **Cycle duration**, enter both the amount and its time unit.
7. Click **Add** **\[C7]**.\
   ▷ The simulations are created and start generating data. The asset appears under **Connected Attributes**.

If you connect attributes of a virtual asset, it remains under **Simulated Assets** rather than moving to **Connected Attributes**.

## Configure or Edit an Attribute Simulation

Open the asset's [simulation detail page](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/asset-simulation-details.md) from the main-page pencil action **\[O]**. Click the attribute's pencil action **\[J]** to edit an existing simulation, or **\[L]** to configure an attribute that is **Not simulated**. Both actions open **Edit Simulation**.

<figure><img src="https://2013058394-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOqGnkz52o2zVUsEGEZGk%2Fuploads%2Fgit-blob-272f536d38dbd0cb42cbb8388a8a1e407cc6b184%2FDevice%20Simulator%20Edit%20Simulation.png?alt=media" alt="Edit Simulation window with Algorithm [J1], algorithm parameters [J2], and Save [J3]."><figcaption><p>Configuring an individual attribute simulation.</p></figcaption></figure>

1. Select the **Algorithm** **\[J1]**.
2. Enter or update its parameters **\[J2]**.\
   ◈ The displayed fields depend on the selected algorithm. Check all fields when changing algorithms.
3. Click **Save** **\[J3]**.\
   ▷ The settings are saved and the detail page displays the updated configuration.

A newly configured simulation starts active. Editing an existing simulation preserves whether it is running or paused, but resets its timing origin. Periodic waveforms therefore start a new cycle from that origin.

{% hint style="info" %}
The screenshots illustrate the available controls, not recommended sampling settings. For waveforms, choose a **Cycle duration** of at least twice the **Interval**, and preferably much longer, to obtain a representative pattern. See [Timing and Output Rules](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/simulation-algorithms.md#timing-and-output-rules).
{% endhint %}

## Next Steps

* [Inspect values and pause or activate simulations](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/asset-simulation-details.md).
* [Copy settings to other attributes of the same asset](https://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/asset-simulation-details.md#copy-a-simulation).


---

# 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://docs.buildings.ability.abb/collection/mandatory-base/platform-core/connect-hub/device-simulator/create-edit-simulation.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.
