主要内容

DRMS

R2026b

Compute discrete-time, cumulative root mean square (DRMS) of signal

  • DRMS block

Libraries:
Simulink Design Optimization / RMS Blocks

Description

Attach the DRMS block to a signal to compute its discrete-time, cumulative root mean square (DRMS) value, which provides a measure of the average energy in a signal.

The discrete-time, cumulative root mean square value of a signal u(t) is defined as

DRMS=1N∑i=1N‖u(ti)‖2

To optimize the signal energy, use this block in conjunction with the Check Custom Bounds block.

Ports

Input

expand all

Input value, specified as a scalar signal.

Output

expand all

Computed discrete-time, root mean square value, output as a scalar signal.

Parameters

expand all

Sample time for computing DRMS value.

Programmatic Use

Parameter: Ts
Value: positive scalar in quotes
Default: '1'

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"sdolib/RMS Blocks/DRMS"

Example: add_block("sdolib/RMS Blocks/DRMS","myModel/myBlock",MakeNameUnique="on")

Version History

Introduced in R2009a

See Also

Blocks