This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

PS Harmonic Estimator (Amplitude, Phase)

Measure harmonic amplitude and phase of periodic signal

  • Library:
  • Simscape / Foundation Library / Physical Signals / Periodic Operators

Description

The PS Harmonic Estimator (Amplitude, Phase) block measures amplitude and phase of a single frequency component (harmonic) of a periodic signal.

A signal is periodic if it completes a pattern within a measurable time frame, called a period, and repeats that pattern over identical subsequent periods. The signal base frequency is the number of periods per second.

The block accepts a physical signal with one or more harmonics present. It outputs the phase and amplitude for the selected harmonic. Untyped physical ports facilitate unit propagation. The output signal for the amplitude has the same physical unit as the input signal. The output signal for phase has the unit of radians, or 1. For more information, see Angular Units.

To obtain meaningful results, run the simulation for at least one full time period of the signal.

Ports

Input

expand all

Input physical signal. The signal must be periodic.

The port name is not visible in the block icon, but you can see this name in the underlying source file (accessible by clicking the Source code link in the block dialog box).

Output

expand all

Output physical signal corresponding to the harmonic amplitude.

Output physical signal corresponding to the harmonic phase. Although the physical output port is untyped, the signal unit is determined by the block equations. When connecting a PS-Simulink Converter block to this port, set its Output signal unit parameter to 1, or to another value commensurate with angular units. For more information, see Angular Units.

Parameters

expand all

Base frequency of the periodic signal.

The number of harmonic within the periodic signal. The value must be a positive integer.

The minimum amplitude necessary for measuring the harmonic phase. The parameter unit must be commensurate with the unit of the input signal. If the harmonic amplitude is less than this value, the output at port Phi is 0.

Compatibility Considerations

expand all

Behavior changed in R2019a

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced in R2015b