Real Time Fault Detection in Photovoltaic Systems