-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi,
Thanks a lot for sharing the impedance scan tool. It is a very advanced tool but it has critical technical issues which I have been dealing with some time ago. Since the tool is going to have many users, please consider updating the code with the following description:
The impedance scan gives faulty results at frequencies in which there are already harmonic emissions. The issue comes from the FFT and impedance calculations methods as follows:
-
The initial emissions should be deducted from the current and voltage components, otherwise the impedance values would be faulty.
(Ih = Ih(after injection) - Ih(before injection)) ,(Vh = Vh(after injection) - Vh(before injection)) -
The FFT for currents should be calculated at zero-crossing point of voltage, otherwise there will be an angle error for the current components.
To see the error, you can add an emission source to the example RLC circuit. You would see that the impedance shall be calculated differently with and without the emission.
RLC circuit with distortion at 250Hz:
Impedance without distortion:
Impedance with distortion at 250Hz:
For more information, please refer to this paper: https://ietresearch.onlinelibrary.wiley.com/doi/full/10.1049/rpg2.12245
Best Regards,
Behnam