# Solar PV Controller (Three-Phase)

**Libraries:**

Simscape /
Electrical /
Control /
Renewables Control

## Description

The Solar PV Controller (Three-Phase) block implements a photovoltaic (PV) grid-following (GF) controller that uses a maximum power point tracking (MPPT) algorithm.

The inputs to the block are the per-unit reactive power reference, the AC-side per-unit voltage and current, and the DC-side voltage and current in volts and amps, respectively. The outputs are the per-unit reference voltage wave for the solar inverter and a bus containing signals for visualization.

For discrete-time simulation, set **Sample time (-1 for inherited)** to a
positive value or to `-1`

to inherit the sample time. For continuous-time
simulation, set **Sample time (-1 for inherited)** to
`0`

.

To choose the MPPT algorithm, in the **MPPT** tab, set the
**Algorithm** parameter to one of these options:

`Perturb and observe (P&O)`

— The P&O algorithm perturbs the operating voltage of the solar panel. The algorithm then observes the change in power output. If the power increases, the perturbation continues in the same direction. If the power decreases, the algorithm reverses the perturbation. To prioritize simulation speed, use this option.`Incremental conductance (INC)`

— The INC algorithm calculates the incremental change in current and voltage to determine the slope of the power-voltage curve. If the slope is positive, the operating point moves to a higher voltage. If the slope is negative, the operating point moves to a lower voltage. If the slope is close to zero, the maximum power point (MPP) is reached. To prioritize accuracy in tracking the MPP, use this option.

### Visualization

The block outputs a bus containing these nine signals for visualization:

The estimated phase angle

*θ*of the input voltage signal*v*_{abc}.The DC-side voltage

*V*_{dc}in volts.The per-unit q-axis current reference

*i*_{q ref}.The per-unit d-axis current reference

*i*_{d ref}.The DC-side reference voltage

*V*_{dc ref}in volts.The per-unit d-axis voltage

*V*_{d}.The per-unit q-axis voltage

*V*_{q}.The per-unit d-axis current

*i*_{d}.The per-unit q-axis current

*i*_{q}.

## Ports

### Input

### Output

## Parameters

## Extended Capabilities

## Version History

**Introduced in R2024a**