Total Harmonic Distortion
R2026bMeasure total harmonic distortion or distortion factor of input signal
Since R2026b
Libraries:
Power Converter Control with Motor Control Blockset /
Measurement
Description
The Total Harmonic Distortion block measures the total harmonic distortion (THD) or distortion factor (DF) of an input signal. Use this block to evaluate power quality and quantify harmonic content in voltage or current waveforms. You can configure the block to accept the fundamental frequency from an input port or specify it directly in the block dialog box, and select a moving window or fixed window measurement mode.
The block calculates THD and DF as follows:
Computes signal power (MS)
Extracts and computes fundamental signal power
Computes THD and DF from these values
Note
The block back-calculates THD from the distortion factor using total signal power and fundamental power. It does not measure individual harmonic amplitudes. This approach reduces computational cost and is designed for signals that contain only harmonic components relative to the fundamental frequency. If the input signal has a DC offset, the block includes the DC power in the total signal power calculation, which produces inflated THD and DF values. To measure THD accurately on a signal with a DC component, add a high-pass filter at the input port before connecting to this block.
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2026b
See Also
Power Measurement | RMS | Selected Frequency Amplitude | Total Power Factor
