> 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-opal-rt/simulation-control-monitoring-and-logging/validate-digital-input-signals.md).

# Validate Digital Input Signals

## Overview

When interfacing a test system with external hardware, it is essential to verify that the signals received by the real-time target are correctly captured and interpreted by the simulation environment. In a HIL setup, this includes validating both static digital inputs and PWM gating signals acquired through the Digital Input channels.

## Procedure

Follow the procedure below to monitor Digital Input channel data in the Power Electronics Add-On.

* In **Schematic Editor,** connect digital signals to the digital input channels of the FPGA board.
* In **VeriStand**, open the System Definition file and navigate to **Power Electronics Add-On (OPAL-RT Circuit)** >> **Hardware Configuration** >> **FPGA*****X*** >> **Digital Inputs.**
* Under **Digital Input Settings**, select **Enable PWM Measurement Channels.** A folder called **Advanced** will be created under the **Digital Inputs** section of the tree.

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2FtBMAUJkbfh14hgLXGVfW%2Fimage.png?alt=media&amp;token=00164d9d-9ca2-40df-8e7b-d0efc03afb03" alt=""><figcaption></figcaption></figure>

* Save and close the System Definition File.
* In the VeriStand project, open or create a **Screen** (.nivsscr) file and add numeric indicators to monitor the desired Digital Input channels.\
  To monitor a **PWM signal acquired on a Digital Input channel**, map a numeric indicator to the corresponding **Duty Cycle** and **Frequency** channels under **Hardware Configuration** >> **FPGA&#x20;*****X*** >> **Digital Inputs** >> **Advanced.**\
  To monitor a **static (non-PWM) signal acquired on a Digital Input channel**, map a numeric indicator to the appropriate VeriStand channel in the **Digital Inputs** section of the tree (**DI00**, **DI01**, etc.).

<figure><img src="https://1300141755-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCyfrFRdgX5VC5iwM13Zm%2Fuploads%2F2DsbmQp0OlSggC688o2U%2Fimage.png?alt=media&amp;token=a1b3cdcb-7e2b-4e3b-b9c0-c3f2ffeee7ae" alt=""><figcaption></figcaption></figure>

* Deploy the simulation and monitor the signals in the user interface.\
  Verify that the PWM signals are operating at the expected duty cycle and frequency.\
  Static signals will display a 1 when HIGH and a 0 when LOW.


---

# 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-opal-rt/simulation-control-monitoring-and-logging/validate-digital-input-signals.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.
