Skip to main content

Current Control and FPGA-Based Real-Time Simulation of Grid-Tied Inverters

European Conference on Power Electronics and Applications 2020 - ECCE Europe


In this paper, the current controller synthesis and real-time testing in a grid-tied inverter system is discussed. The current loops are implemented using an observer–based linear quadratic regulator. The disturbance observer is employed to ensure zero steady state error in the presence of model uncertainties. A simulation model implemented in SimscapeTM ElectricalTM is used to evaluate the control algorithm in real–time on a Speedgoat real–time system with an IO334 field–programmable gate array (FPGA) I/O module. The results show the effectiveness of the proposed solution. 

⮕ See the publication in IEEE Xplore


  • Learn how to synthesize a controller for a grid-side converter using observer-based linear quadratic regulator (LQR) 
  • Hardware-in-the-loop testing of grid-tied inverter using Simulink and Speedgoat hardware  
  • Include switching dynamics for PWM frequencies up to 100 kHz. 
  • Generate real-time code from the electrical plant to an IO334 Simulink-programmable FPGA I/O module 
  • Experimental results from real-time simulation including plant and TI Launchpad microcontroller 


Product Highlights

Speedgoat Products

MathWorks Products

The Authors

Sabin Carpiuc

Sabin Carpiuc
Senior Engineer Physical Modeling at MathWorks, United Kingdom

Matthias Schiesser

Matthias Schiesser
FPGA Development Engineer at Speedgoat, Switzerland

Carlos Villegas

Carlos Villegas
Electrification Industry Manager at Speedgoat, Switzerland

Relevant Ressources