> 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/ehs/model-in-sps-rt-lab-only/test-scenarios-with-parameter-sets.md).

# Test Scenarios with Parameter Sets

**Scenarios** allow you to test the eHS circuit under different predefined conditions. Each scenario represents a complete configuration of parameter values, corresponding to a specific operating scenario.

During simulation, you can switch between parameter sets at any time. When a set is selected, all associated parameters are applied simultaneously, allowing instant changes in operating conditions.

This makes it possible to:

* Dynamically adjust operating conditions
* Compare model behavior across scenarios
* Perform sensitivity and robustness analysis efficiently

## Enable Scenarios

Scenarios are defined in an Excel file, where **each row represents a scenario** and **each column corresponds to a block parameter**.

To enable scenarios and create a compatible Excel file:

1. Double-click the **eHS CPU Block** to open its mask.
2. Navigate to the **Scenarios** tab.
3. Enable **Use Scenarios**. A new **Scenario ID** input port appears on the **eHS CPU Block**.
4. Click **Generate scenario file template** to create a compatible Excel file with all scenario parameters preconfigured. Alternatively, browse to an existing compatible scenario file.

<figure><img src="https://3212678799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FABuoXNYgvaoO7wIe3bfO%2Fuploads%2Fgit-blob-c52f31500a85e49065da2e3b912b50cce201736a%2Fimage%20(22).png?alt=media" alt=""><figcaption></figcaption></figure>

## Control Scenarios during simulation

The **Scenario ID** input controls the active scenario during simulation. A value of **N** activates the scenario whose **Set ID** is **N**.

Changing the **Scenario ID** during runtime automatically applies the corresponding parameter set without stopping the simulation. This allows circuit block parameters and operating conditions to be updated dynamically based on simulation logic or external inputs.


---

# 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/ehs/model-in-sps-rt-lab-only/test-scenarios-with-parameter-sets.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.
