> 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/hypersim/library-blocks-reference/control-measurements/sequence-analyzer.md).

# Sequence analyzer

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-9e9a5d6598497b27cc93bb9abe07ccce51217037%2Fimage%20(697).png?alt=media" alt="" width="234"><figcaption></figcaption></figure>

The **sequence analyzer** block, located in the **Control Measurements** library, outputs the magnitude and phase of the zero-sequence (0), positive-sequence (1), and negative-sequence (2) components of a three-phase signal. The input can be a three-phase voltage or current and may be balanced or unbalanced.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-d3a43f579729541777b29ca51d1fe0d31d96c9d6%2Fimage%20(699).png?alt=media" alt="" width="563"><figcaption><p>Internal circuit of the block</p></figcaption></figure>

The following example uses the sequence analyzer block to compute the three sequence components of a three-phase unbalanced signal.

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-fbb2127aa999d6e4d6dcd6f2e11c757dfb3aaced%2Fimage%20(700).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-2f351bf2f4f9aa23d0f4d4ef9300a1bd400f36dd%2Fimage%20(701).png?alt=media" alt=""><figcaption><p>Simulation results in ScopeView</p></figcaption></figure>

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-462696065382d280b3b0d26e5ac7e8787ab62e20%2Fimage%20(698).png?alt=media" alt="" width="450"><figcaption></figcaption></figure>

<table><thead><tr><th width="260">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Description</strong></td><td>Use this field to add information about the block.</td></tr><tr><td><strong>Fundamental frequency</strong></td><td>Fundamental frequency (Hz) used to compute the magnitude and phase of the zero-, positive-, and negative-sequence components Fnom = [0, 1e12].<br>Cannot be modified during the simulation.</td></tr></tbody></table>

## Inputs

<table><thead><tr><th width="260">Input</th><th>Description</th></tr></thead><tbody><tr><td><strong>abc</strong></td><td>Vectorized signal containing phase-to-ground voltages (Va, Vb, Vc) or phase-to-ground currents (Ia, Ib, Ic).</td></tr></tbody></table>

## Outputs

<table><thead><tr><th width="260">Output</th><th>Description</th></tr></thead><tbody><tr><td><strong>Mag120</strong></td><td>Vectorized signal containing the amplitude of the zero-sequence, positive-sequence, and negative-sequence components of the input signal (units: V or A).</td></tr><tr><td><strong>Pha120</strong></td><td>Vectorized signal containing the phase of the zero-sequence, positive-sequence, and negative-sequence components of the input signal (deg).</td></tr></tbody></table>


---

# 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/hypersim/library-blocks-reference/control-measurements/sequence-analyzer.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.
