> 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/pe-add-on-opal-rt/simulation-control-monitoring-and-logging/enable-updating-analog-output-gain-and-offsets-while-the-simulation-is-running.md).

# Enable Updating Analog Output Gain & Offsets While the Simulation is Running

When interfacing the test system with external hardware, it is can be important to calibrate the analog outputs using the gain and offset feature support by each channel.

The gain and offset parameter of each analog output channels can be set before the simulation is deployed and modified while the simulation is running if the functionality is enable.

## Procedure

{% stepper %}
{% step %}

### Open the circuit model

* Click on a measurement block and configure it to be connected to an analog output channel.

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FJ1Gko2mQWLcfdSMa4s6g%2Fimage.png?alt=media&amp;token=df5eec00-7410-4870-b1fe-ec3c0f2a64b0" alt="" width="480"><figcaption></figcaption></figure>

* Clicking on the arrow next to the *Gain* parameter allows the simulation to use a constant user defined value or a value that will be set from a VeriStand channel.

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2Fkjjc8DApDqFZuU0igHnR%2Fimage.png?alt=media&amp;token=88892562-6947-4596-acfe-c45bc0cf2385" alt="" width="480"><figcaption></figcaption></figure>

* Save the schematic.
  {% endstep %}

{% step %}

### In the VeriStand System Definition

* Click **Reload**. Expand the *Sources* section and identify the newly added channel for controlling the gain of the analog output.

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FA9Y8WB712UeCWBli8IDJ%2Fimage.png?alt=media&amp;token=381d1ba9-645f-4fde-9a18-2e9a31c78ff3" alt=""><figcaption></figcaption></figure>

* Save and close the System Definition File. Deploy the simulation
  {% 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/pe-add-on-opal-rt/simulation-control-monitoring-and-logging/enable-updating-analog-output-gain-and-offsets-while-the-simulation-is-running.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.
