A device for PV modules I-V characteristic detection