RMS Value

Purpose

Calculate root mean square (RMS) value of input signal

Library

Control / Filters

Description

../../_images/rms.svg

This block calculates the RMS value of a periodic input signal. The sample time, fundamental frequency and the initial condition can be specified.

Example Model

  • See the example model “Rms Value”.

  • Find it in PLECS under Help > PLECS Documentation > List of Example Models.

Parameters

Initial condition

The initial condition describes the input signal before simulation start. If the input is a scalar signal, the parameter must be a scalar too. If input and output are vectorized signals, a vector can be used. The number of elements in the vector must match the number of input signals. The default value of this parameter is 0.

Sample time

A scalar specifying the sampling period or a two-element vector specifying the sampling period and offset, in seconds \((\mathrm{s})\). See also the Discrete-Periodic sample time type in Sample Times. If a sample time of 0 is specified, a continuous implementation based on the Moving Average block is active. The Discrete-Periodic implementation can potentially force a variable-step solver to take small integration steps. This may slow down the simulation. The default value of this parameter is 0.

Fundamental frequency

The fundamental frequency of the periodic input signal in hertz \((\mathrm{Hz})\).