RMS
Calculates the true RMS value of the signal.
blockType: SubSystem
Path in the library:
|
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.
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 |
|
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 |
|
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 |
|
Program usage name |
|
Evaluatable |
Yes |
# Fundamental frequency, Hz — fundamental frequency
Details
Specify the fundamental frequency of the input signal in Hz.
Default value |
|
Program usage name |
|
Evaluatable |
Yes |
# Initial RMS value — initial RMS value
Details
Specify the initial RMS value of the output signal.
Default value |
|
Program usage name |
|
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 |
|
Program usage name |
|
Evaluatable |
Yes |