First the charge controller is connected to batteries. Then you turn the controller on to make sure it works. Then the regulator is connected to a solar array.