The purpose of this paper is to investigate the performance of a PV-based grid-connected system. In the suggested arrangement, there are two phases in the conversion process. The conversion of alternating current voltage to direct current voltage is the first stage. It is decided to use the usual two-level converter at this point. The second stage consists of converting the direct current voltage to alternating current voltage using a typical two-level voltage source converter (VSC). A control technique based on the Anti-windup tuned PI (PI+AWT) is being developed to govern the dc link voltage at VSC of the second stage conversion. The proportional resonant controller is used to control the current signals and also to regulate the reference signals in the pulse width modulation (PWM) scheme, which is described in detail below. The sinusoidal pulse width modulation (PWM) technique is used to regulate VSC switches. The suggested controller’s performance is evaluated under three different conditions: continuous irradiation, change of irradiation, and three-phase fault. MATLAB/SIMULINK is used to calculate the parameters of the results.