A system for controlling a grid connected power generating system is provided. The system includes a wind turbine, a converter, a first controller and a second controller. The wind turbine supplies electrical power to a power grid and the converter couples the wind turbine to the power grid. The first controller calculates voltage commands to emulate a phasor back electromotive force behind an inductance. The controller further generates converter switching commands from the voltage commands. The voltage commands include a voltage magnitude reference and an internal frequency reference calculated from a power imbalance between an active power reference and the electrical power. The second controller is used to limit a converter current.