> 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/rt-lab/simulink-blocks-reference/rt-lab-i-o-library/analog-out.md).

# Analog Out

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-3e704ef21d5dab93ebebd8ca40c50fffb1eb3656%2Fcb031035-acbb-4065-b3dd-8a5a1d759901.jpg?alt=media" alt=""><figcaption></figcaption></figure>

The **Analog Out** block, located in the **RT-LAB I/O/Opal-RT/Common** library, transmits analog voltage signals from the model to an Analog Output module installed in the simulator or expansion unit. Each signal is expressed in volts, such that a value of `1` in the model corresponds to 1 V at the module.

## Mask parameters

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-2a54d299b5b173380ef4f83271b4eefde51292e9%2Fd66c8410-916b-4a29-9a95-41858a82a299.jpg?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="194.333251953125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Controller Name</strong></td><td>Specifies the <strong>OpCtrl</strong> block this block is bound to. Enter the same <strong>Controller Name</strong> as defined in the corresponding <strong>OpCtrl</strong> block.</td></tr><tr><td><strong>DataIn port number</strong></td><td>Specifies the Analog Output module and subsection to which this block transmits signals. Subsection 1 corresponds to channels 0–7, subsection 2 corresponds to channels 8–15, and so on.<br>Configure the <strong>DataIn port number</strong> according to your <strong>System Description Document</strong> or <code>.conf</code> file.</td></tr><tr><td><strong>Slot infos</strong></td><td>Read‑only field displaying the expected physical location (Slot, Section, Subsection) of the Analog Output module derived from the selected <strong>DataIn port number</strong>. If the port number is invalid, <em>Slot 0 Module X Subsection 0</em> is displayed.</td></tr><tr><td><strong>Maximum number of AOut channels controlled by this block</strong></td><td>Read‑only field displaying the maximum number of channels available in the selected subsection.</td></tr><tr><td><strong>Number of AOut channels</strong></td><td>Specifies the size of the block input vector, corresponding to the number of channels to transmit at each calculation step. The value must be less than or equal to the <strong>Maximum number of AOut channels</strong>. Due to the data transfer mechanism, channels cannot be individually selected; the block transmits data to the first N channels of the subsection, where <em>N</em> is this parameter.</td></tr><tr><td><strong>Set Voltage Range from input port</strong></td><td><p>This option is not available when the board type selected in <strong>OpCtrl</strong> is OP48xx.<br><strong>Checked:</strong> Replaces the <strong>Voltage Range</strong> parameter with a block input. Refer to the <strong>Voltage Range</strong> parameter for details.</p><p><strong>Unchecked:</strong> The block uses the <strong>Voltage Range</strong> parameter and has no <strong>Voltage Range</strong> input.</p></td></tr><tr><td><strong>Voltage Range</strong></td><td><p>Selects the voltage range applied <strong>globally to all 16 channels</strong> of the Analog Output module.<br>If multiple Analog Out blocks reference the same module, they must use the same <strong>Voltage Range</strong> setting. Available options are <strong>±16 V</strong>, <strong>±10 V</strong>, and <strong>±5 V</strong>.</p><p>Output values exceeding the selected range are saturated to the corresponding limits. The full <strong>16‑bit DAC resolution</strong> is preserved for all ranges and always spans the selected voltage range (for example, a 20 V span when using ±10 V).<br>This field is replaced with a block input when <strong>Set Voltage Range from input port</strong> is <strong>checked.</strong></p></td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="138">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>Volts</strong></td><td>Inputs data to be transmitted to the Analog Out module, expressed in volts, for the selected channel subset. The input vector size is determined by the <strong>Number of AOut channels</strong> parameter. Use a <strong>Mux</strong> block to combine individual signals into a single input vector.</td></tr><tr><td><strong>Voltage Range</strong></td><td><p>Available only when the <strong>Set Voltage Range from input port</strong> parameter is <strong>checked.</strong><br>This input replaces the <strong>Voltage Range</strong> parameter and sets the voltage range based on the connected constant value:</p><ul><li><code>5</code>: Sets the voltage range to <strong>±5 V</strong>.</li><li><code>10</code>: Sets the voltage range to <strong>±10 V</strong>.</li><li>Any other value: Sets the voltage range to <strong>±16 V</strong>.</li></ul></td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="102">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>Status</strong></td><td><p>Outputs the block status:</p><ul><li><code>0</code>: No error.</li><li><code>-1</code>: Block not associated with an <strong>OpCtrl</strong> block (check the <strong>Controller Name</strong> parameter), or FPGA initialization failure.</li><li><code>-2</code>: Internal memory initialization failure.</li><li><code>-7</code>: Output data out of range. Values exceed the voltage limits defined by the <strong>Voltage Range</strong> parameter and are saturated to the corresponding limits.</li></ul></td></tr></tbody></table>

## Characteristics and limitations

<table><thead><tr><th width="249.77783203125">Characteristic</th><th>Value</th></tr></thead><tbody><tr><td><strong>Connector pin assignments</strong></td><td>Refer to the <strong>System Description Document</strong> provided with your order, or refer to the pin assignment of the <a href="https://opal-rt-technologies.gitbook.io/opal-rt-technologies-docs/op53xx/"><strong>OP53xx series I/O module</strong></a> associated with each subsection.</td></tr><tr><td><strong>Direct feedthrough</strong></td><td>No</td></tr><tr><td><strong>Discrete sample time</strong></td><td>Inherited</td></tr><tr><td><strong>XHP support</strong></td><td>Yes</td></tr><tr><td><strong>Work offline</strong></td><td>No</td></tr><tr><td><strong>Maximum channels per block</strong></td><td>Limited by sub-section size (usually 8)</td></tr></tbody></table>

## Useful tips

* The Voltage Range must be the same for all channels. If two Analog Out blocks drive the same mezzanine (Subsections A and B), both must use the same Voltage Range selection. Apply the same constant value to both.
* The 16-bit D/A resolution is maintained for all three selectable voltage ranges.
* After enabling Set Voltage Range from input port and clicking Apply, the Voltage range parameter is removed from the mask.


---

# 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/rt-lab/simulink-blocks-reference/rt-lab-i-o-library/analog-out.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.
