> 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/efpgasim-library/simulink-sps-workflow/analog-out-mapping-rescaling-control-panel.md).

# Analog Out Mapping Rescaling Control Panel

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-6d017d3bee72b10802e951f3479f987262deadf9%2Faomapping-rescalling-control-panel.png?alt=media" alt=""><figcaption></figcaption></figure>

The **Analog Out Mapping Rescaling Control Panel** block, located in the **eFPGAsim/External circuit editor workflow** library, provides an interface for generating the configuration data used by the **AOut Mapping & Rescaling Controller** block. It is used to specify the signal source and scaling factors for each analog output channel controlled by its parent driver block.

## Mask parameters

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-cbd50f49da512f00005489ebbfbc6561d1b73f52%2Faomapping-rescalling-control-panel-masks.png?alt=media" alt=""><figcaption></figcaption></figure>

{% tabs %}
{% tab title="Configuration" %}

| Parameter                       | Description                                                                                                                                                                                                                                                                                                                                |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Form Factor**                 | Defines which type of eHS is used in the example. x32, x64 and x128 settings are selected when using a standard product bitstream and example model. Custom and x128 with custom are selected when using a custom made bitstream and model. In order to better identify which setting should be used, refer to the firmware documentation. |
| **Signal Names**                | List of all signal names to be made available to choose in the channel tabs. The Signal Name list needs to match with what is in the bitstream. The Signal Name input must be a cell (MATLAB type) that contains char type data.                                                                                                           |
| **Number of User AOut Signals** | Sets the number of user signals made available to the mapping function. User signals are defined in the RT-LAB model and should be made available to the "user\_aout" input of this block.                                                                                                                                                 |
| {% endtab %}                    |                                                                                                                                                                                                                                                                                                                                            |

{% tab title="ch0 to ch31" %}

| Parameter       | Description                                                        |
| --------------- | ------------------------------------------------------------------ |
| **Signal**      | Sets the signal to be applied on the current selected channel tab. |
| **Gain**        | Sets the gain to be applied on the selected signal.                |
| **Offset**      | Sets the offset to be applied on the selected signal.              |
| **Max (Volts)** | Sets the AO channel output maximum voltage.                        |
| **Min (Volts)** | Sets the AO channel output minimum voltage.                        |

The formula applied to the output signal is: Output AO voltage = saturate(signal\*gain+offset,min,max)
{% endtab %}
{% endtabs %}

## Inputs

This block has no input.

## Outputs

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-ab2f4102a97d214d201a2442aeac88c36df6a90f%2Faomapping-rescalling-control-panel-outputs.png?alt=media" alt=""><figcaption></figcaption></figure>

| Output       | Description                                                                                                                                                    |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **To\_Aout** | <p>Connects to the Aout\_Mapping & Adjustments block.<br>It contains all the parameters (mapping, gains, offsets, maximums and minimums) of every signals.</p> |

## Characteristics and limitations

The user must ensure that the gains, offsets and saturation threshold are consistent and fit any external hardware limitations. As an example, if the bottom saturation threshold is higher than the top saturation threshold, and both thresholds are trespassed simultaneously, a constant zero will be sent as the analog output signal.

| Direct Feedthrough   | N/A |
| -------------------- | --- |
| Discrete sample time | YES |
| XHP support          | YES |
| Work offline         | NO  |


---

# 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/efpgasim-library/simulink-sps-workflow/analog-out-mapping-rescaling-control-panel.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.
