> 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/smart-inverter-library/gfl-signal-conditioning-three-phase.md).

# GFL Signal Conditioning Three Phase

## Description

<figure><img src="https://96827845-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNRdpSk8kjn20gXAexnt6%2Fuploads%2Fgit-blob-3ce95713121ef44196c796d3e731ced41fcbc6e5%2FCSI_RT_Signal_cond_3P_block.png?alt=media" alt="" width="88"><figcaption></figcaption></figure>

The \*\*Signal Conditioning\*\* block, located in the \*\*Smart Inverter Library\*\*, generates measured and conditioned values for use by Smart Inverter Control Toolbox blocks. For grid support functions, the voltage reference can be computed as the average of three-phase RMS values or as the positive sequence. The block provides configurable first-order low-pass filters for power and DC link voltage measurements. A phase-locked loop (PLL) estimates the AC grid frequency and instantaneous voltage angle and uses the PLL reference angle to transform voltages and currents from the ABC frame to a synchronous rectangular reference frame.

{% hint style="danger" %}
The Signal Conditioning Block currently supports only three-phase balanced voltages and currents.
{% endhint %}

{% hint style="danger" %}
This block requires a valid license on both the simulator and the workstation with the feature SMART INVERTER enabled.
{% endhint %}

## Mask parameters

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

{% tabs %}
{% tab title="Parameters" %}

<table><thead><tr><th width="190">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Nominal Operating Voltage (Vrms LL)</strong></td><td>Nominal inverter line-to-line RMS operating voltage (V)</td></tr><tr><td><strong>Nominal DC-Link Voltage</strong></td><td>Nominal DC link voltage (V)</td></tr><tr><td><strong>Nominal Frequency</strong></td><td>System frequency (Hz)</td></tr><tr><td><strong>Rated Apparent Power</strong></td><td>Inverter nominal three-phase apparent power (VA)</td></tr><tr><td><strong>Rated Active Power</strong></td><td>Inverter nominal three-phase active power (W)</td></tr><tr><td><strong>Grid Support Functions Voltage Reference</strong></td><td>Voltage reference type: average of three-phase RMS or positive sequence (unitless selection)</td></tr><tr><td><strong>Initial values [Freq, V, P, Q, Vdc]</strong></td><td>Initialization values for frequency (Hz), voltage (pu), active power (pu), reactive power (pu), and DC link voltage (pu)</td></tr><tr><td><strong>Sample Time</strong></td><td>Timestep of the signal conditioning Three-Phase block (s)</td></tr></tbody></table>
{% endtab %}

{% tab title="Filters" %}

<table><thead><tr><th width="190">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Power Measurement Filter Time Constant</strong></td><td>Time constant of the first-order low-pass filter applied to power measurement (s)</td></tr><tr><td><strong>DC Link Voltage Measurement Filter Time Constant</strong></td><td>Time constant of the first-order low-pass filter applied to DC link voltage measurement (s)</td></tr></tbody></table>
{% endtab %}

{% tab title="PLL" %}

<table><thead><tr><th width="190">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Regulator gains [Kp,Ki, Kd]</strong></td><td>Proportional, integral, and derivative gains of the internal PLL PID controller; tune to adjust response time, overshoot, and steady-state error (unitless)</td></tr><tr><td><strong>Time constant for derivative action</strong></td><td>Time constant of the first-order filter in the PID derivative path (s)</td></tr><tr><td><strong>Maximum rate of change of frequency</strong></td><td>Maximum positive and negative slope of the signal frequency (Hz/s)</td></tr><tr><td><strong>Filter cut-off frequency for frequency measurement</strong></td><td>Cut-off frequency of the second-order low-pass filter used for frequency measurement (Hz)</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

## Inputs

| Input     | Description                                 |
| --------- | ------------------------------------------- |
| **Vgrid** | Instantaneous three-phase grid voltages (V) |
| **Igrid** | Instantaneous three-phase grid currents (A) |
| **Vdc**   | DC link voltage (V)                         |

## Outputs

| Output        | Description                                                                                                              |
| ------------- | ------------------------------------------------------------------------------------------------------------------------ |
| **P**         | Positive-sequence active power computed from positive-sequence voltage and current, followed by a low-pass filter (pu)   |
| **Q**         | Positive-sequence reactive power computed from positive-sequence voltage and current, followed by a low-pass filter (pu) |
| **PF**        | Power factor computed from active and reactive power (unitless)                                                          |
| **Vgrid\_pu** | Per-unit three-phase instantaneous grid voltages (pu)                                                                    |
| **Vrms**      | Per-unit RMS value of the three-phase grid voltages (pu)                                                                 |
| **Igrid\_pu** | Per-unit three-phase instantaneous grid currents (pu)                                                                    |
| **Vdc\_pu**   | Per-unit DC link voltage (pu)                                                                                            |
| **Vrms\_avg** | Average of the per-unit RMS values of the three-phase grid voltages (pu)                                                 |
| **Frequency** | Grid voltage frequency estimated by the PLL (Hz)                                                                         |
| **wt**        | Instantaneous angle synchronized to the positive-sequence phase-A fundamental, varying from 0 to 2π (rad)                |

## Signals available for monitoring and external I/O connections (via sensors form)

All block inputs and outputs are available as signals for monitoring and for external I/O connections.

{% hint style="danger" %}

## **Intellectual Property Disclaimer**

Natural Resources Canada owns all intellectual property rights in the Smart Inverter Modelling Toolbox software and related products.
{% endhint %}

{% hint style="info" %}

## Acknowledgements <a href="#acknowledgements" id="acknowledgements"></a>

The development of the <code class="expression">page.vars.block\_name</code> block in the Smart Inverter Control Library is a contribution of CanmetENERGY at Natural Resource Canada.
{% 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/rt-lab/simulink-blocks-reference/smart-inverter-library/gfl-signal-conditioning-three-phase.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.
