主要内容

PS RMS Estimator

R2026b

Measure RMS value of periodic signal

  • PS RMS Estimator block

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

Description

The PS RMS Estimator block measures the root mean square (RMS) value 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 AC components present. It outputs an RMS value, where each frequency component is averaged over its time period.

Both the input and the output are physical signals. Untyped physical ports facilitate unit propagation. The output signal has the same physical unit as the input signal.

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 by clicking the Source code link in the Description tab of the block dialog box.

Programmatic Use

Port: I

Output

expand all

Output physical signal.

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

Programmatic Use

Port: O

Parameters

expand all

Base frequency of the periodic signal.

Programmatic Use

Parameter: f0

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"fl_lib/Physical Signals/Periodic Operators/PS RMS Estimator"

Example: add_block("fl_lib/Physical Signals/Periodic Operators/PS RMS Estimator","myModel/myBlock",MakeNameUnique="on")

For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

Extended Capabilities

expand all

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

Version History

Introduced in R2015b

expand all