Skip to content

THD

Symbol

Description

Calculate the THD value of the input signal. The THD value is evaluated at the specified frequency.

output = \frac{\sqrt{input_{rms}^2-input_1^2}}{input_1}

where input_{rms} is the RMS of the input and input_1 is the fundamental of the input

Important

A sampling time must be specified for the THD model to work. Otherwise, an error is thrown.

Library

Control > Discrete

Parameters

Property Display Name Parameter Type Description
Frequency Frequency (in Hz) DoubleParameter Frequency in Hz
SamplingTime Sampling Time [s] DoubleParameter Sampling Time

Pins

Property Pin Name Type Description
In In ControlIn Input
Out Out ControlOut Output

Default Size

Width Height
4 4