the sampling frequency plays a critical role. If the sampling frequency for the controller is not choosen right, the controller does not work as intented.
my question
why mostly the sampling frequency of the controller and the switching frequency are different, and how i can set the sampling frequency of discrete powergui in Simulink to control shunt active power filter?