a b s t r a c tIn this paper, an implementation of the control and the synchronization algorithms for a Voltage Source Inverter used as the power conditioner for Photovoltaic renewable energy in a grid-connected structure is carried out. Its main purpose is to show, in a simple manner, the design and combined operation of the control and synchronization algorithms for attaining the proper behaviour of the Grid Inverter when the 3-phase utility grid is disturbed by voltage unbalances, frequency variations and harmonic distortions, according to power quality standards.In order to obtain a high efficiency of the system during perturbations, a Proportional Resonant controller with a Harmonic Compensator structure is designed for the control algorithm, whereas a Dual Second Order Generalized Integrator Frequency-Locked Loop (DSOGI-FLL) is used as the synchronization algorithm.In order to validate both the control and the synchronization algorithms, some simulations using MATLAB/SIMULINK from The MathWorks, Inc. are shown firstly, and secondly, some real-time digital simulations are carried out.