Implementation of a Photovoltaic Array Simulator Based on a Virtual Instrument and a Lab Programmable Power Supply