Solar photovoltaic system controller function