> 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-simulink/model-and-simulation/configure-the-hardware-fpga/analog-outputs-section.md).

# Analog Outputs Section

## Analog Outputs Configuration Page <a href="#analog-outputs-configuration-page" id="analog-outputs-configuration-page"></a>

This page is populated with a list of the Analog Output channels available for the selected [**Hardware Configuration**](https://www.opal-rt.com/docs/pe-add-on-simulink/hardware-configurations-reference/default-hardware-configurations.md). Map eHS Measurements, machine model outputs, and other simulated signals to each Analog Output channel to interact with external hardware. Gain, offset, minimum and maximum saturation factors can also be applied to the signals before they are output.

The following configuration options are available for each channel:

### **Analog Output Settings**

Filters the list of available **Elements** to be mapped to the Analog Output channel. The available options are defined by the selected [**Hardware Configuration**](https://www.opal-rt.com/docs/pe-add-on-simulink/hardware-configurations-reference/default-hardware-configurations.md), however it is typical to see the following options by default:

<table><thead><tr><th width="220.04443359375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Not Connected</strong></td><td>No signal is mapped to the physical channel.</td></tr><tr><td><strong>Measurements</strong></td><td>eHS <strong>Measurements</strong> made in the circuit model. In the <strong>Element</strong> dropdown, select the name of the measurement to map.</td></tr><tr><td><strong>Sinewaves</strong></td><td>Sinewave outputs of the <strong>Sinewave Generators</strong>. In the <strong>Element</strong> dropdown, select the index of the Sinewave Generator whose output signal to map.</td></tr><tr><td><strong>CPU (VeriStand)</strong></td><td>VeriStand custom device channels on the CPU. If this Source is selected, the <strong>Element</strong> dropdown is populated with a single option displaying the name of the custom device channel whose value is mapped.</td></tr><tr><td><strong>Machine</strong></td><td>Output channels of the <strong>Machine Model</strong>. In the <strong>Element</strong> dropdown, select the name of the channel to map.</td></tr><tr><td><strong>Element</strong></td><td>The name or index of the signal to be mapped to the analog output channel. The options available in this dropdown depend on the selected <strong>Source</strong>.<br>After the <strong>Gain</strong>, <strong>Offset</strong>, <strong>Min</strong>, and <strong>Max</strong> parameters have been applied to this signal, its conditioned numeric value will be output as a voltage on the corresponding Analog Output channel.</td></tr><tr><td><strong>Gain</strong></td><td>Signal gain. The mapped signal is multiplied by this value before the <strong>Offset, Min</strong>, and <strong>Max</strong> saturation are applied.<br>This value can be overridden by the <strong>ConnX.AO</strong> <em><strong>XX</strong></em> <strong>Gain</strong> custom device channel at runtime if <strong>Enable Gain and Offset as Channels</strong> is enabled.</td></tr><tr><td><strong>Offset</strong></td><td>DC offset of the signal, added after the <strong>Gain</strong> has been applied.<br>This value can be overridden by the <strong>ConnX.AO</strong> <em><strong>XX</strong></em> <strong>Offset</strong> custom device channel at runtime if <strong>Enable Gain and Offset as Channels</strong> is enabled.</td></tr><tr><td><strong>Min</strong></td><td>Lower saturation limit of the signal, applied after the <strong>Gain</strong> and <strong>Offset</strong>. Use this parameter to avoid exceeding voltage limitations of externally connected systems.</td></tr><tr><td><strong>Max</strong></td><td>Upper saturation limit of the signal, applied after the <strong>Gain</strong> and <strong>Offset</strong>. Use this parameter to avoid exceeding voltage limitations of externally connected systems.</td></tr></tbody></table>

The following configuration options are available at edit-time and applied to all channels:

### **Analog Output Settings**

<table><thead><tr><th width="220.31109619140625"></th><th></th></tr></thead><tbody><tr><td><strong>Synchronization Mode</strong></td><td>Defines the synchronization master for the mapping algorithm that triggers an update to the analog output channels. This is a drop-down that specifies the available synchronization masters.<br>When the <strong>Default</strong> option is selected, the mapping algorithm synchronizes directly to the analog output channels using handshaking. When the analog output channels are able to output new data, they will sample the mapping algorithm for new data. This default will be sufficient for most customer applications.<br>When a <strong>synchronization master</strong> is specified, the analog output channels are written to as new data becomes available from the master. This option may be useful to reduce jitter in certain situations on a specific data path, such as when the source data is available at a lower rate than the analog output sampling rate.<br>Example: When the eHS simulation is set to a timestep of 2us and the analog output sampling occurs every 1us, the user may want to synchronize to the <strong>Measurements</strong> source to reduce jitter in the eHS to analog output data path.</td></tr><tr><td><strong>Enable Gain and Offset as Channels</strong></td><td>Enables execution-time updates of the signal gain and offset. When this option is enabled, an <strong>Advanced</strong> subsection is created under the Analog Outputs section and populated with <strong>ConnX.AO</strong> <em><strong>XX</strong></em> <strong>Gain</strong> and <strong>ConnX.AO</strong> <em><strong>XX</strong></em> <strong>Frequency</strong> custom device channels as described in the Channels table below.</td></tr></tbody></table>

### Analog Outputs Section Channels

This section includes the following custom device channels. The value of an input channel can be modified dynamically at execution time:

<table><thead><tr><th width="220.13330078125"></th><th></th></tr></thead><tbody><tr><td><strong>ConnX.AO</strong><em><strong>XX(Input)</strong></em></td><td><p>The Analog Outputs section is populated with one <strong>ConnX.AO</strong><em><strong>XX</strong></em> custom device channel for each physical Analog Output channel available in the selected <strong>Hardware Configuration</strong>.</p><p>If the <strong>CPU (VeriStand)</strong> Source option is mapped to an Analog Output channel, the value of its corresponding <strong>ConnX.AO</strong><em><strong>XX</strong></em> custom device channel defines the magnitude of the voltage output on the physical channel. If the <strong>CPU (VeriStand)</strong> mapping option is unused, the value of the channel does not affect the Analog Outputs or the simulation, (Volts) (Default Value: 0V).</p></td></tr><tr><td><strong>ConnX.AO</strong><em><strong>XX</strong></em><strong> Gain</strong><em><strong>(Input)</strong></em></td><td><p>Signal Gain to apply to channel ConnX.AO<em>&#x3C;XX>.</em></p><p>When <strong>Enable Gain and Offset as Channels</strong> is enabled, the <strong>Analog Outputs >> Advanced >> Gain</strong> section is populated with one <strong>ConnX.AO</strong><em><strong>XX</strong></em><strong> Gain</strong> channel for each Analog Output channel. The default value of this channel is the value of the <strong>Gain</strong> parameter in the Analog Outputs Configuration Page, (Gain) (Default Value: Gain).</p></td></tr><tr><td><strong>ConnX.AO</strong><em><strong>XX</strong></em><strong> Offset</strong><em><strong>(Input)</strong></em></td><td><p>DC Offset to apply to channel <strong>ConnX.</strong>AO<em>&#x3C;XX>.</em></p><p>When <strong>Enable Gain and Offset as Channels</strong> is enabled, the <strong>Analog Outputs >> Advanced >> Offset</strong> section is populated with one <strong>ConnX.AO</strong><em><strong>XX</strong></em><strong> Offset</strong> channel for each Analog Output channel. The default value of this channel is the value of the <strong>Offset</strong> parameter in the Analog Outputs Configuration Page, (Volts) (Default Value: Offset).</p></td></tr></tbody></table>


---

# 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-simulink/model-and-simulation/configure-the-hardware-fpga/analog-outputs-section.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.
