Measure root-mean-square (RMS) properties of a signal
Simscape / Power Systems / Simscape Components / Control / Measurements
The RMS Measurement block measures root-mean-square (RMS) properties of the input signal. You can use it to measure one of these properties:
The total RMS of the input signal
The RMS of the individual harmonics of the input signal that you specify.
Use the total RMS configuration with appropriate sensors to perform RMS voltage, current, or power analyses in your system.
You can use the harmonics configuration to perform total harmonic distortion analyses on systems with nonlinear loads such as:
The total RMS value is calculated from the input signal xRMS as:
T is the period of the input signal, or equivalently the inverse of its base frequency F.
x is the input signal.
Because the calculation is performed over a period of time, the block requires T seconds to respond to a step change in the input signal. This condition also applies to startup.
The harmonic RMS component xk,RMS for harmonic k is calculated as:
0.5for the DC component (k = 0) and for the AC components (k > 0).
u— Input signal
Periodic input signal.
Estimated RMS of the input signal. If you select Specify harmonics, the output is a vector with each element corresponding to a specified harmonic. Otherwise, the output is a scalar representing the total RMS.
Base frequency (Hz)— Fundamental frequency
60 Hz(default) | scalar
Base frequency of the input signal corresponding to the first harmonic.
Specify harmonics— RMS output mode
off(default) | on
Specify whether to output the total RMS of the input signals, or the individual harmonics that you specify.
Harmonic numbers— Harmonics specification
[0 1 2](default) | vector
Specify the harmonics for which to output an RMS.
To enable this parameter, select the Specify harmonics parameter.
Sample time— Block sample time
0(default) | positive number
Sample time for the block. For continuous operation, set this property to
0. For discrete operation, specify the sample time
explicitly. This block does not support inherited sample time.