> 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/model-and-simulation/power-systems-with-artemis/smart-inverter-control.md).

# Smart Inverter Control

The **Smart Inverter Control Library** is a MATLAB-Simulink library for control and protection of smart inverters, developed according to IEEE Std. 1547‐2018. It supports both **grid-following** and **grid-forming** converters and enables rapid prototyping and testing with real-time simulators or hardware. The library is included in the **ARTEMiS toolbox** and provides key capabilities such as **Rapid Control Prototyping (RCP)**, allowing the simulator to interface with real power converters for real-time controller testing, **Hardware-in-the-Loop (HIL) testing**, enabling integration of real control and protection hardware with digital smart inverter models, **communication support** via Modbus TCP and IEC 61850 GOOSE for connecting digital models with real devices, and full compatibility with **offline MATLAB-Simulink simulations** of smart inverter applications.

## Requirements

### Simulator license

[Verify that an active RT-LAB license](https://www.opal-rt.com/docs/rt-lab/licensing-reference/simulator-license.md) with the following feature is installed on the simulator to execute simulations with Smart Inverter Control blocks on that simulator:

<table><thead><tr><th width="209.63629150390625">Feature Name</th><th width="183.5455322265625">Required Status</th><th>Description</th></tr></thead><tbody><tr><td>SMARTINVERTER</td><td>enabled</td><td>Smart Inverter library</td></tr></tbody></table>

### Workstation license

[Verify that an active RT-LAB license](https://www.opal-rt.com/docs/rt-lab/licensing-reference/workstation-license.md) with the following feature is installed on the **workstation to execute simulations with Smart Inverter Control blocks in Simulink** and on a simulator:

<table><thead><tr><th width="209.63629150390625">Feature Name</th><th width="183.5455322265625">Required Status</th><th>Description</th></tr></thead><tbody><tr><td>SMARTINVERTER</td><td>enabled</td><td>Smart Inverter library</td></tr></tbody></table>

## Grid-following control blocks

A **grid-following converter** operates in a grid-supporting mode. The library provides blocks for current and power control, protection, and configurable grid-supporting functions such as CPF, Volt-Var, and Droop. Detailed descriptions of each block can be found in the **Simulink Blocks Reference /** [**Smart Inverter Library**](broken://pages/jT2kWT84UO0PmMWUJMMQ) section.

## Grid-forming control blocks

A **grid-forming converter** controls the voltage magnitude and angle at its terminals, managing active power exchange with the grid or microgrid. It is typically used to form a grid during islanded operation. The library contains blocks for primary, inner, and secondary control approaches. Full block descriptions are available in the **Simulink Blocks Reference /** [**Smart Inverter Library**](broken://pages/jT2kWT84UO0PmMWUJMMQ).

## Protection system blocks

The **Protection Elements (PE)** detect abnormal conditions and generate trip signals to disable the converter and its control layers. The library includes blocks for frequency, voltage, and overcurrent protection, as well as latching and anti-islanding support. It also supports momentary cessation mode and is validated according to **IEEE 1547-2018** and **IEEE 1547.1-2020** standards. For detailed descriptions, see the **Simulink Blocks Reference /** [**Smart Inverter Library**](broken://pages/jT2kWT84UO0PmMWUJMMQ).

## Intellectual Property Disclaimer <a href="#intellectual-property-disclaimer" id="intellectual-property-disclaimer"></a>

Natural Resources Canada owns all intellectual property rights in the Smart Inverter Control Library software and related products.


---

# 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/model-and-simulation/power-systems-with-artemis/smart-inverter-control.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.
