Establish the practical mathematic model of Synchronous Generator in the static var generator (SVG) of single machine infinite bus power system. Based on Hamiltonian energy theory, the new nonlinear controller is designed between the SVG which is installed in the bus voltage of system and synchronous machine excitation. This controller directly use the energy as the storage function, compared to other nonlinear controllers, this controller has the advantage of the fast stability and the capability of quelling the disturbance. Since the nonlinear control structure retains all in this design, it does not need the linearization, the proposed SVG controller is more robust than linear control method. The simulation results show that the proposed controller can faster meet generator excitation and SVG access point voltage transient stability than conventional PID control when subjected to the three-phase short circuit fault.