Can anybody provide me a basic model of three phase series active power filter with PI control mitigating input voltage harmonics. i have developed a matlab model using hysteresis control but i am unable to tune. my harmonic detection using DFT block works fine but hysteresis control is not generating appropriate PWM pulses