“…11 shows the block diagram comprising every step of the process. First, a sampled HBCC is used to inject harmonic currents into the grid, which is digitally implemented by comparing the current error with the hysteresis band [30], selected as 1% of the operational current, and then the switches and are turned on or off accordingly. Then, phase voltage is measured at the converter's output along with the current , and both signals go through a DFT algorithm to extract the desired harmonic components, and , as well as the respective phases, and .…”