I. Introduction
The characteristics of the grid, especially its impedance, have major effects on the operation and control of grid-connected power electronic devices, such as wind and solar inverters [1]. Ideally, the grid should behave like an ideal voltage source and the inverter should be controlled as an ideal current source to avoid any interconnect problems. In practice, however, this ideal condition never exists and stability of the inverter-grid system requires that the ratio of the grid impedance to the inverter output impedance satisfies the Nyquist criterion [2]. One particular problem that has been discussed extensively in [2] and [3] is harmonic resonance between the inverter and the grid. Since the grid impedance varies from location to location as well as over time, one effective solution is to adaptively change the inverter control based on the impedance of the grid it connects to [4]. Such adaptive control requires real-time measurement of the grid impedance, which is the subject of this paper.