This paper presents the integration of the photovoltaic panels which are modeled in the Matlab/Simulink to the smart grid using a 6-switched 3-level inverter. The system generates electricity by photovoltaic panels and feed load via 6-switched 3-level inverter. To reduce harmonics in the system and increase the quality of the generated signal, 6-switched 3-level inverter, which is contain an alternative topology to multi-level inverter topologies, is used. The required signals are generated for the operation of the inverting IGBTs using the space vector pulse width modulation technique. The system has fed the loads by generating electricity energy when the photovoltaic panels are favorable in terms of the energy production. By analyzing the performance of the modelled system the stability level is investigated. At the end of the process, a productive model has been developed in terms of power stability and quality.