> 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/machines/switched-reluctance-motor-hysteresis-controller.md).

# Switched Reluctance Motor Hysteresis Controller

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-93b28242b6b079d13a17eb9f4f673ede00e455f6%2Fsps-ehs-srm-block.png?alt=media" alt="" width="251"><figcaption></figcaption></figure>

The **Switched Reluctance Motor Hysteresis Controller** block, located in the **eFPGAsim/External circuit editor workflow/Machines/Tools** library, is used to initialize, monitor and control on FPGA SRM controller.

## Mask parameters

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-9d093bcfb44a71b0ac5bffd143f22b78208b25ea%2Fsps-ehs-srm-mask.png?alt=media" alt=""><figcaption></figcaption></figure>

| Parameter                          | Description                                                                                                                                                                                                          |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Controller Name**                | Links 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 FPGA-based card in the system. |
| **Controller Settings (SRM Type)** | This should specify the SRM type used in the model.                                                                                                                                                                  |
| **Load In Port Number**            | This should reflect the LoadIn port used to configure the SRM Hysteresis Controller in the FPGA.                                                                                                                     |
| **Data Out Port Number**           | This should reflect the DataOut port used to receive the SRM Hysteresis Controller data from the FPGA.                                                                                                               |

## Inputs

| Input                | Description                                                          |
| -------------------- | -------------------------------------------------------------------- |
| **Iref\_max**        | This represents the upper bound of the controller reference current. |
| **Iref\_min**        | This represents the lower bound of the controller reference current. |
| **Turn\_on\_angle**  | This represent the angle for switching the phase supply on.          |
| **Turn\_off\_angle** | This represent the angle for switching the phase supply off.         |
| **Rst**              | Reset of the FPGA motor solver.                                      |

## Outputs

| Output             | Description                                       |
| ------------------ | ------------------------------------------------- |
| **Controller Out** | This output returns the set up controller output. |

## Characteristics and limitations

| Direct Feedthrough   | NO  |
| -------------------- | --- |
| Discrete sample time | YES |
| XHP support          | YES |
| Work offline         | N/A |


---

# 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/machines/switched-reluctance-motor-hysteresis-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.
