> 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/digital-inputs-section.md).

# Digital Inputs Section

## Digital Inputs Configuration Page

This page is populated with a list of the Digital Input channels available for the selected [**Hardware Configuration**](https://www.opal-rt.com/docs/pe-add-on-simulink/hardware-configurations-reference/default-hardware-configurations.md).

The following configuration options are available at edit-time:

### **Digital Input Settings**

<table><thead><tr><th width="230">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Enable PWM Measurement Channels</strong></td><td>Enables the PWM Measurement feature for every Digital Input channel. When this option is enabled, an <strong>Advanced</strong> subsection is created under the Digital Inputs section and populated with <strong>ConnX.DI</strong><em><strong>XX</strong></em><strong> Duty Cycle</strong> and <strong>ConnX</strong>.<strong>DI</strong><em><strong>XX</strong></em><strong> Frequency</strong> channels as described in the table below.</td></tr></tbody></table>

### Digital Inputs Section Channels

This section includes the following custom device channels:

<table><thead><tr><th width="230.17779541015625">Channel Name</th><th>Description</th></tr></thead><tbody><tr><td><p><strong>ConnX.DI</strong> <em><strong>XX</strong></em> <strong>Duty Cycle</strong></p><p><strong>(Output)</strong></p></td><td>Duty Cycle of the digital signal acquired on channel ConnX. <em>DIO.</em> Accuracy information can be found under <strong>PWM Measurement Accuracy</strong>.<br>When <strong>Enable PWM Measurement Channels</strong> is enabled, the <strong>Digital Inputs >> Advanced >> Duty Cycle</strong> section is populated with one <strong>ConnX.DIO</strong> <em><strong>XX</strong></em> <strong>Duty Cycle</strong> channel for each Digital Input channel, (Percent) (Default Value: 0%).</td></tr><tr><td><p><strong>ConnX.DI</strong> <em><strong>XX</strong></em> <strong>Frequency</strong></p><p><strong>(Output)</strong></p></td><td><p>Frequency of the digital signal acquired on channel ConnX. <em>DIO.</em> Accuracy information can be found under <strong>PWM Measurement Accuracy</strong>.</p><p>When <strong>Enable PWM Measurement Channels</strong> is enabled, the <strong>Digital Inputs >> Advanced >> Frequency</strong> section is populated with one <strong>ConnX.DIO</strong> <em><strong>XX</strong></em> <strong>Frequency</strong> channel for each Digital Input channel, (Hertz) (Default Value: 0Hz).</p></td></tr><tr><td><p><strong>ConnX.DI</strong> <em><strong>XX</strong></em></p><p><strong>(Output)</strong></p></td><td>Digital data read by the FPGA on channel ConnX. <em>DIO.</em> The Digital Inputs section is populated with one <strong>ConnX.DIO</strong> <em><strong>XX</strong></em> channel for each Digital Input channel available in the selected <strong>Hardware Configurations,</strong> (Default Value: 0).</td></tr></tbody></table>

{% hint style="info" %}
Digital Input data can be mapped to other simulation components by navigating to their respective configuration pages. Mapping options may vary between [**Hardware Configurations**](https://www.opal-rt.com/docs/pe-add-on-simulink/hardware-configurations-reference/default-hardware-configurations.md)**.**
{% endhint %}

## PWM Measurement Accuracy

The accuracy of the PWM Measurement feature is dependent upon the frequency and duty cycle of the measured signal. The tables below provide benchmark information describing the maximum expected measurement error across a range of PWM frequencies.

### Table 1: Error in Frequency Measurement

These data points have been validated for Duty Cycles between 0.1 and 0.9.

<table><thead><tr><th width="230">Frequency Range</th><th>Percent Error in Frequency Measurement</th></tr></thead><tbody><tr><td><strong>1Hz - 10Hz</strong></td><td>&#x3C; 0.5%</td></tr><tr><td><strong>10Hz - 100Hz</strong></td><td>&#x3C; 0.05%</td></tr><tr><td><strong>100Hz - 1kHz</strong></td><td>&#x3C; 0.01%</td></tr><tr><td><strong>1kHz - 10kHz</strong></td><td>&#x3C; 0.05%</td></tr><tr><td><strong>10kHz - 100kHz</strong></td><td>&#x3C; 0.1%</td></tr><tr><td><strong>100kHz - 500kHz</strong></td><td>&#x3C; 2%</td></tr></tbody></table>

### Table 2: Error in Duty Cycle Measurement

Duty cycle error has been measured at three Duty Cycles: 0.1, 0.5, and 0.9.

<table><thead><tr><th width="197.77777099609375">Frequency Range</th><th>Duty Cycle: 0.1 (Percent Error)</th><th>Duty Cycle: 0.5 (Percent Error)</th><th>Duty Cycle: 0.9 (Percent Error)</th></tr></thead><tbody><tr><td><strong>1Hz - 10Hz</strong></td><td>&#x3C; 0.0005%</td><td>Negligible</td><td>Negligible</td></tr><tr><td><strong>10Hz - 100Hz</strong></td><td>&#x3C; 0.005%</td><td>&#x3C; 0.001%</td><td>&#x3C; 0.001%</td></tr><tr><td><strong>100Hz - 1kHz</strong></td><td>&#x3C; 0.05%</td><td>&#x3C; 0.01%</td><td>&#x3C; 0.01%</td></tr><tr><td><strong>1kHz - 10kHz</strong></td><td>&#x3C; 0.1%</td><td>&#x3C; 0.05%</td><td>&#x3C; 0.05%</td></tr><tr><td><strong>10kHz - 100kHz</strong></td><td>&#x3C; 1%</td><td>&#x3C; 0.1%</td><td>&#x3C; 0.1%</td></tr><tr><td><strong>100kHz - 500kHz</strong></td><td>&#x3C; 10%</td><td>&#x3C; 2%</td><td>&#x3C; 1%</td></tr></tbody></table>

### Table 3: Minimum Detected Frequency

If a signal with a frequency below the **Minimum Detected Frequency** is applied, the corresponding VeriStand Channels will output *NaN* (Not a Number) after the **Settling Time** has elapsed.

<table><thead><tr><th width="380">Hardware Configuration</th><th>Minimum Detected Frequency</th><th>Settling Time</th></tr></thead><tbody><tr><td>eHSx32_Dual_PMSM_SH_IO_7868R</td><td>0.5 Hz</td><td>2 s</td></tr><tr><td>eHSx32_Dual_PMSM_VDQ_IO_32DO_7868R</td><td>0.5 Hz</td><td>2 s</td></tr><tr><td>eHSx64_Dual_PMSM_VDQ_IO_7868R</td><td>0.25 Hz</td><td>4 s</td></tr><tr><td>eHSx64_Quad_IM_SM_IO_7868R</td><td>0.25 Hz</td><td>4 s</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/digital-inputs-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.
