Skip to content

RMS Meter

Root-mean-square meter for a single (scalar) signal. Computes out = sqrt(mean(in²)) over a sliding time window. For a sinusoidal input at the configured frequency the output equals the signal's RMS amplitude (A_pk / √2) once the window has filled. The window length is 1 / frequency, so for a 60 Hz AC voltage the default settles in ~16.67 ms.

Category: Continuous

Keywords: RMS, root mean square, rms meter, true rms, meter, magnitude, AC, amplitude, voltmeter, ammeter

Ports

NameDirectionValue typeNotes
ininputdouble
outoutputdouble

Parameters

NameLabelTypeDefaultUnitsDescription
frequencyf (Hz)double60Fundamental frequency used to size the averaging window (window = 1 / frequency). Set to your AC system's nominal frequency (e.g. 60 for North America, 50 for Europe). For non-AC / arbitrary signals, pick the frequency whose 1-cycle window matches the desired settling time.

Implemented in C++ class SimCompCtlRms (components/control/CSim_comp_ctl_rms/sim_comp_ctl_rms.h).

Released under the MIT License.