Engee documentation

RMS

Calculates the true RMS value of the signal.

blockType: SubSystem

Path in the library:

/Physical Modeling/Electrical/Control/Measurements/RMS

Description

The RMS block calculates the true root mean square (RMS) of the input signal.

The true RMS value of the input signal is calculated in the moving average window on one cycle for a given fundamental frequency:

where

  • - input signal;

  • - fundamental frequency.

Since this block uses a moving average window, one simulation cycle must be completed before the correct value is obtained at the output. For the first simulation cycle, the output maintains the specified initial RMS value.

Characteristics

Sampling period

Set in the parameters Sample time. Continuous if Sample time is set to 0.

Scalar expansion

Yes, from parameters.

Definition of dimensionality

Yes.

Ports

Input

# IN_1 — input signal
scalar | vector

Details

The input signal for which the unit calculates the RMS value is specified as a scalar or vector.

Data types

Float64.

Complex numbers support

No

Output

# OUT_1 — RMS value of the input signal
scalar | vector

Details

RMS value of the input signal, returned as a scalar or vector.

Data types

Float64.

Complex numbers support

No

Parameters

Parameters

# True RMS value — calculate the true RMS value

Details

Select this check box to have the unit calculate the true RMS value of the input signal.

Clear this check box to have the unit calculate the fundamental value of the input signal divided by .

Default value

true (switched on)

Program usage name

true_RMS

Evaluatable

Yes

# Fundamental frequency, Hz — fundamental frequency

Details

Specify the fundamental frequency of the input signal in Hz.

Default value

50

Program usage name

f

Evaluatable

Yes

# Initial RMS value — initial RMS value

Details

Specify the initial RMS value of the output signal.

Default value

120

Program usage name

RMS_init

Evaluatable

Yes

# Sample time — interval between calculation steps

Details

Specify the block sampling period, in seconds. Set 0 to realise a continuous block.

Default value

0

Program usage name

sample_time

Evaluatable

Yes