> 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/smart-power-simulation-software-sps/example-models/control-and-measurements/pmu-pll-based-positive-sequence-benchmark.md).

# PMU (PLL-based, Positive-Sequence) Benchmark

This example shows the use of a phasor measurement unit - PMU (PLL-based, Positive-Sequence) in a benchmark circuit.

<figure><img src="https://799605156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdlNg8IbOdahCpFCyzxSN%2Fuploads%2Fgit-blob-88b516f5b580be5155111ac7f7f5f729123f263b%2FPMU_benchmark_example.png?alt=media" alt=""><figcaption></figcaption></figure>

## Description

The PMU (PLL-Based, Positive-Sequence) benchmark model computes the positive-sequence component of a three-phase signal containing a series of events in the input signal (unbalanced condition, harmonics, frequency modulation).

It shows that the PMU (PLL-Based, Positive-Sequence) block outputs accurate magnitude, phase and frequency even if the input signal varies during the simulation.

## Simulation

In Model Configuration Parameters, select "Variable-step" as simulation type and "Auto (Automatic solver selection)" as the solver.

**Sequence of simulated events:**

1. t = 0: Positive-sequence voltage = 1 pu, phase 0 deg
2. 0.2 s < t < 0.4 s: Positive-sequence voltage falls to 0 pu
3. t > 0.5 s: Sinusoidal frequency modulation (58/62 Hz Freq = 1 Hz)
4. 1 s < t < 1.5 s: Adding unbalanced condition (0.4 pu of negative-sequence and 0.3 pu of zero-sequence, no harmonics)
5. t = 1.75 s: Phase shift of -90 deg
6. t > 2 s: Adding harmonic condition without unbalance (20% 3rd + 30% 4th)

Change the reporting rate factor and the sampling rate. Compare the shape of the waveforms shown on the scope.

Finally, compare the reference signals (magenta) and the PMU signals (yellow) of frequency, magnitude and phase.

## Command

Example model name: power\_pmubench

{% code lineNumbers="true" %}

```matlab
open('power_pmubench')
```

{% endcode %}


---

# 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/smart-power-simulation-software-sps/example-models/control-and-measurements/pmu-pll-based-positive-sequence-benchmark.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.
