> 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/model-in-schematic-editor/configure-the-ehs-circuit-interfaces/configure-machine-i-os.md).

# Configure Machine I/Os

## Interface machine blocks

**Machine** blocks can exchange signals with <code class="expression">space.vars.cpu\_model\_veristand</code> and/or an external DUT through a variety of interfaces.

Some machine parameters and signals can be **driven by** values provided by Veristand.

In addition, some machine outputs can be **routed to**:

* Veristand
* Physical analog output channels
* Waveform channels
* A combination of these interfaces

Machine block parameters and signals are organized into multiple tabs. Be sure to review all tabs to access the available configuration options.

1. Click the arrow next to the parameter or signal input to open the **Deep Panel**.
2. For parameter values that can be driven by Veristand, the option **FROM VERISTAND** will be available.
3. Only one input option can be active at a time. To revert to a user-defined value in Schematic Editor, select **SOURCES**.
4. For signals that can be routed to external outputs, click the **+** icon below **DESTINATIONS** to reveal the additional options. Select **AO (Analog Output)** or **WF (Waveform Output)** to add the destination.
5. Multiple destinations can be configured and active at the same time. By default, the signal is routed to Veristand. To remove a destination, hover over it and click the **trash** icon that appears.
6. Configure the destination using its available parameters. For **AO (Analog Output)**, select the I/O connector and channel (**Pin**) that will output the measurement. You can also configure a **Gain**, **Offset**, and **Min/Max** thresholds. For **WF (Waveform Output)**, select the waveform channel (**Pin**) to output the measurement to.

## Configure resolver outputs and excitation source

A machine block can emulate a **resolver** and **output** resolver **sine** and **cosine** signals to:

* Veristand
* Physical analog output channels
* Waveform channels
* A combination of these interfaces

The resolver excitation source can also be configured as **External**, allowing the excitation signal to be provided through a selected **analog input channel**.

### Configure resolver outputs

To output resolver signals:

1. Navigate to the **RESOLVER** tab of the machine block and set **Enable resolver** to **On**.
2. Click the arrow next to the sine and cosine **Resolver feedback signals** to open the **Deep Panel**.
3. Click the **+** icon below **DESTINATIONS** to reveal the additional options. Select **AO (Analog Output)** or **WF (Waveform Output)** to add the destination.
4. Multiple destinations can be configured and active at the same time. To remove a destination, hover over it and click the **trash** icon that appears.
5. Configure the destination using its available parameters. For **AO (Analog Output)**, select the I/O connector and channel (**Pin**) that will output the measurement. You can also configure a **Gain**, **Offset**, and **Min/Max** thresholds. For **WF (Waveform Output)**, select the waveform channel (**Pin**) to output the measurement to.

### Configure resolver excitation source input

To use an external resolver excitation source:

1. Navigate to the **RESOLVER** tab of the machine block and In the set **Excitation source type** to **External**.
2. Click the arrow next to the **Excitation source** parameter to open the **Deep Panel**.
3. Click the **+** icon below **SOURCES** to add an **AI (Analog Input)** input source. Select the I/O module and channel (**Pin**) that will drive the source and configure the **Gain**, **Offset**, and **Min/Max** thresholds.
4. Multiple sources can be configured, but **only one can be active at a time**. To remove a source, hover over it and click the **trash** icon that appears.

## Configure encoder outputs

A machine block can emulate an **encoder** and generate **A**, **B**, and **Z** signals on **predefined** digital output channels.

To enable encoder outputs, navigate to the **ENCODER** tab of the machine block and set **Enable encoder** to **On**. You can click the arrow next to the **A B Z encoder signals** to open the **Deep Panel** and verify that the **DO** destination is selected.

The encoder output destinations cannot be modified or removed. To disable encoder outputs, set **Enable Encoder** to **Off**. The **assigned digital output channels are predefined by the selected firmware and cannot be selected by the user**.

To identify the digital output channels assigned to the encoder, save the circuit in the Schematic Editor and load (or reload) it in Veristand. The **`eHSBuildReport.txt`** file is generated in the circuit file directory. Open this file in your preffered text editor.

In the **Build Report**, scroll to the **I/O Connections Information** section and locate **Machine encoder outputs** near the end of the section. The machine block name and corresponding digital output assignment are listed there.

For example:

```
Machine encoder outputs A, B and Z connection to digital out
pmsm1 : 2B subsection 1, signals 1 through 3
```

In this example:

* **A** is assigned to channel **00** of the module in slot **2B**
* **B** is assigned to channel **01** of the module in slot **2B**
* **Z** is assigned to channel **02** of the module in slot **2B**

Consecutive encoder signals are assigned to consecutive digital output channels starting from the first channel indicated in the **Build Report**.


---

# 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/model-in-schematic-editor/configure-the-ehs-circuit-interfaces/configure-machine-i-os.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.
