THD
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
Pins
Name | Description |
---|---|
In | Input |
Out | Output |
Parameters
Name | Description |
---|---|
Frequency | Frequency in Hz |
SamplingTime | -none or 0: No sampling. The system will be solved in the Newton loop (default). -auto: Inherit the sampling time of its source device. -Sampling Period: defined in seconds. |