> 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/three-phase-programmable-source-v-i-measurement-and-sequence-analyzer.md).

# Three Phase Programmable Source, V I Measurement and Sequence Analyzer

This example shows the use of the 3-Phase Programmable Voltage Source, 3-Phase V-I Measurement, and Sequence Analyzer blocks.

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

## Description

A 25kV, 100 MVA short-circuit level, equivalent network feeds a 5MW, 2 Mvar capacitive load.

The internal voltage of the source is controlled by the Discrete 3-phase Programmable Voltage Source block.

Open the source dialog box and look at the parameters controlling the voltage. A positive-sequence of 1.0 pu, 0 degrees is specified. At t = 0.05 s a step of 0.5 pu is applied on positive-sequence voltage magnitude, then, at t = 0.1 s, 0.08 pu of 5th harmonic in negative sequence is added on the 1.5 pu voltage.

In order to start simulation in steady state, the three voltage sources are initialized with a positive-sequence voltage of 25 kV, 0 degree, 60 Hz.

The Three-Phase V-I Measurement block allows to monitor the three load voltages and currents. Open its dialog box and see how this block allows to output the voltages and currents in pu.

Two Discrete 3-phase Sequence Analyzer blocks are used to monitor the positive-sequence of the three fundamental voltages Va, Vb, Vc and the negative-sequence component of the 5th harmonic.

The whole system, (power network, programmable source, and sequence analyzers) is discretized at a 50 us sample time.

## Simulation

Choose Simulation/Start and observe the voltage and current waveforms.

The simulation starts in steady state with 1 pu voltage. At t = 0.05 sec, the internal voltage is increased to 1.5 pu. At t = 0.10 sec. 0.08 pu of 5th harmonic internal voltage is added.

Observe the fundamental component (pos. seq.) and the 5th harmonic component (neg. seq.) measured by the two sequence analyzers. The 0.08 pu 5th harmonic internal voltage is amplified at 0.14 pu at the load terminals. As the sequence analyzers use Fourier analysis, their response time is one cycle.

## Command

Example model name: power\_3phsignalseq

{% code lineNumbers="true" %}

```matlab
open('power_3phsignalseq')
```

{% 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/three-phase-programmable-source-v-i-measurement-and-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.
