Synchronous reference frame current controller for a 1-phase inverter. It takes the measured and the dq setpoints and calculates the duty cycle, which can be then used as the input to the SignalPWM block in switching models or directly as the input of the switch or converter in averaged models.
The control is performed with two LimPID blocks (one per component) configured as a PI controller.