> 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/simulation-control-monitoring-and-logging/reduce-pmsm-sh-signal-error-in-high-impedance-conditions.md).

# Reduce PMSM SH Signal Error In High Impedance Conditions

When the equivalent impedance to the PMSM SH model is very high, small errors in the machine currents (Ia, Ib and Ic) can cause high voltage errors to occur at the input legs of the machine. Since the voltage noise is connected to the machine inputs, a positive feedback loop can occur causing instability or increased errors in the PMSM SH simulation.

<figure><img src="https://2999842053-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fe9Kk9pJCHht2LLBSxPap%2Fuploads%2Fu7eM1ITDbUQOr17R0geW%2F348ba109-8339-4b47-9158-bc7a88198f30.png?alt=media&amp;token=91f28a64-eacb-4849-b73a-8ebcd213a4c4" alt="" width="480"><figcaption></figcaption></figure>

In order to avoid this situation, start the simulation with the machine resistances higher than the values defined by the model file. When the machine is in a lower impedance operating state, return the machine resistance values to those defined by the model file. The following procedure describes how to accomplish this using the **Resistances Override Channels**.

## Procedure

1. Enable **Enable Advanced Channels** on the **PMSM SH Page** of the desired PMSM SH machine.
2. Set the default value of the **Enable Resistance Override** channel to **True (1)**.
3. Set the default values of the **Resistance Phase A Override, Resistance Phase B Override** and **Resistance Phase C Override** channels to a Resistance value bigger than the one used by the model file. Typical starting values should be between 10 and 100 Ohms.
4. Save the system definition and deploy it with the new changes.
5. After the simulation has started, add the Advanced Channels of the desired PMSM SH to your UI.
6. As soon as the machine is in a lower impedance operating state, you can return the resistance values to the standard operating values by decreasing the values of the **Resistance Phase A Override, Resistance Phase B Override** and **Resistance Phase C Override** channels to the values specified in the model file.

{% hint style="info" %}
Consider creating a User Channel in VeriStand and mapping it to the **Resistance Phase Override** channels to control all the resistance values from a single location (see [**Adding a User Channel**](https://www.ni.com/docs/en-US/bundle/veristand/page/add-user-channel.html) in the VeriStand Help), or configure an Alarm in VeriStand to change the value of the **Resistances Phase Override** channels (see [**Using Alarms In Veristand**](https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kGVMSA2\&l=en-CA)).
{% endhint %}


---

# 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/simulation-control-monitoring-and-logging/reduce-pmsm-sh-signal-error-in-high-impedance-conditions.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.
