> 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/dataout-recv.md).

# DataOut Recv

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-e609545bee29b30ddd7e160e78f6077e55ce2b64%2F0060f95b-1f3c-4595-b78c-0eb85c79597b.jpg?alt=media" alt=""><figcaption></figcaption></figure>

The **DataOut Recv** block, located in the **RT-LAB I/O/Opal-RT/Common** library, receives raw data at every simulation time step **directly from the FPGA**, bypassing standard I/O unpacking blocks. Data is transferred through the FPGA **DataOut ports** and is intended for use cases where the model directly consumes raw data words produced by the bitstream logic. Each DataOUT port supports up to **250 32‑bit data words**, enabling high‑bandwidth data transfer from the FPGA to the model.

Correct use of this functionality requires a clear understanding of the **bitstream logic** that processes the transmitted data. An incorrect data frame configuration may result in **invalid or undefined FPGA behavior**. Refer to the **System Description Document** for details on the bitstream implementation.

## Mask parameters

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-a33622f5aff43a8329e8fb398cb041a0edf4763d%2F2770b1d8-87b5-45e1-9495-864121cfad41.jpg?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="211">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>DataOut port number</strong></td><td>Specifies which DataOut port this block uses to receive raw data words. Configure the <strong>DataOut port number</strong> according to your <strong>System Description Document</strong> or <code>.conf</code> file.</td></tr><tr><td><strong>Data outport width</strong></td><td>Specifies the maximum number of data words that will be received from the FPGA at each calculation step.</td></tr><tr><td><strong>Data outport type</strong></td><td><p>Selects the data type of the DataOut Recv output port. Available options are <strong>uint32</strong> and <strong>double</strong>.</p><p>When <strong>double</strong> is selected, the driver <strong>typecasts values from double to uint32</strong>. As a result, output values are limited to the valid range <strong>0 ≤ x ≤ 2³² − 1</strong>.</p><p>Selecting <strong>uint32</strong> avoids typecasting and provides <strong>optimal performance</strong>.</p></td></tr><tr><td><strong>Sample Time (s)</strong></td><td><p>Specifies the block sample time, in seconds. A value of <code>0</code> sets a continuous sample time, inherited from the parent subsystem. A value of <code>−1</code> specifies an inherited sample time from the model.</p><p>The functionality block and its associated <strong>OpCtrl</strong> block must execute at the same <strong>sample time</strong>.</p></td></tr><tr><td><strong>Check application version</strong></td><td><em>This parameter is not used and should be left <strong>unchecked</strong>.</em></td></tr></tbody></table>

## Inputs

This block has no inputs.

## Outputs

<table><thead><tr><th width="102">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>Data</strong></td><td>Outputs acquisition data received from the FPGA at each calculation step. No scaling or formatting is applied. If the <strong>Data outport type</strong> parameter is set to <strong>double</strong>, values are <strong>typecast from double to uint32</strong>.</td></tr><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>: Data reception timeout, typically caused by model synchronization issues.</li><li><code>-3</code>: Data reception error: fewer data received than expected. Missing values are replaced with <code>0</code>.</li><li><code>-4</code>: Data reception error: more data received than expected. Extra values are discarded.</li></ul></td></tr></tbody></table>

## Characteristics and limitations

| Characteristic           | Value |
| ------------------------ | ----- |
| **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/rt-lab-i-o-library/dataout-recv.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.
