Photovoltaic (PV) research is rapidly growing, and the need for controlled environments to validate new MPPT controllers is becoming increasingly important. Currently, researchers face several challenges in testing MPPT algorithms due to the unpredictable nature of solar PV power generation. In this paper, we propose a new photovoltaic emulator (PVE) that could replace solar panels and ensure a highly controllable environment suitable for testing photovoltaic (PV) systems. In this PVE, the complex nonlinear equations of the PV cell/module are fast computed and resolved by a new linearization technique which involves the systematic breakdown of the current-voltage ( I - V ) curve of the PV into twelve linear segments. Based on input environmental conditions, an artificial neural network (ANN) was constructed to assist the linearization process by predicting the current-voltage boundary coordinates of these segments. Using simple linear equations, with the segment boundary coordinates, a reference voltage was generated for the PVE. A nonlinear backstepping controller was designed to exploit the reference voltage and stabilize the power conversion stage (PCS). The PVE was optimized using particle swarm optimization (PSO). Several tests have shown that the proposed nonlinear controller provides better dynamic and robust performance than the PI controller, the most reputable and recurrent control method in the area of PVE. The PVE was coupled with a recently proposed integral backstepping MPPT controller and analyzed under several dynamic conditions, including the MPPT test specified by EN 50530. It was found that the accuracy of the proposed PVE measured by its relative error is less than 0.5%, with an MPPT efficiency of greater than 99.5%. The attractive results achieved by this PVE make it especially suitable for simulating and validating MPPT controllers.