> 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-input-differential-rescaling-controller.md).

# Analog Input Differential Rescaling Controller

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-0da0bafd99aa281c547cf2004b929d0e7c367b58%2Faidr-controller.png?alt=media" alt="" width="266"><figcaption></figcaption></figure>

The **Analog Input Differential Rescaling Controller** block, located in the **eFPGAsim/External circuit editor workflow** library, manages communication with the FPGA to transmit the gain and offset configuration parameters required by the **Analog Input Differential Rescaling** 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-c70e18988c25da619952cfd68b1a2b350ae5a20a%2Faidr-controller-mask.png?alt=media" alt="" width="329"><figcaption></figcaption></figure>

| Parameter              | Description                                                                                                                                                                                              |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **LoadIn port number** | Reflects the communication port used to send scaling and offset information. Refer to the firmware documentation to know how to set this parameter.                                                      |
| **Controller Name**    | Binds this block to an OpCtrl block by entering the same 'Controller Name' as specified in the OpCtrl block The OpCtrl block controls initialization of the settings of one specific card in the system. |

## Inputs

| Input       | Description                                                                                                                                                                                                 |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Gains**   | Each element of this input corresponds to the gain applied to one analog input channel. Its width must be equal to the number of channels that need to be processed.                                        |
| **Offsets** | Each element of this input corresponds to the offset applied to one analog input channel. It is applied after the signal gain. Its width must be equal to the number of channels that need to be processed. |
| **Mins**    | Each element of this input corresponds to the min output value applied to one analog input channel. Its width must be equal to the number of channels that need to be processed.                            |
| **Maxs**    | Each element of this input corresponds to the max output value applied to one analog input channel. Its width must be equal to the number of channels that need to be processed.                            |

## Outputs

| Output     | Description                                                                                                                                                |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Status** | Reports the status of the LoadIn function. Refer to the LoadIn block within the RT-LAB I/O library to get the signification of the different status codes. |

## Characteristics and limitations

| Direct Feedthrough   | NO  |
| -------------------- | --- |
| 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-input-differential-rescaling-controller.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.
