RMS
(To be removed) Compute true root mean square (RMS) value of signal
The Specialized Power Systems library will be removed in R2026a. Use the Simscape™ Electrical™ blocks and functions instead. For more information on updating your models, see Upgrade Specialized Power System Models to use Simscape Electrical Blocks.
Libraries:
Simscape /
Electrical /
Specialized Power Systems /
Sensors and Measurements
Description
The RMS block computes the true root mean square (RMS) value of the input signal. The true RMS value of the input signal is calculated over a running average window of one cycle of the specified fundamental frequency:
where f(t) is the input signal and T is 1/(fundamental frequency).
As this block uses a running average window, one cycle of simulation must complete before the output gives the correct value. For the first cycle of simulation, the output is held to this specified initial RMS value.
Characteristics
| Sample Time | Specified in the Sample Time parameter. Continuous if Sample Time = 0. |
| Scalar Expansion | Yes, of the parameters. |
| Dimensionalized | Yes. |
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2013a