Main Content

jc_0624: Usage of Tapped Delay blocks/Delay blocks

Since R2020a

Guideline Publication

Control Algorithm Modeling Guidelines - Using MATLAB®, Simulink®, and Stateflow®

Sub ID Recommendations

  • NA-MAAB — No recommendations

  • JMAAB — a, b

MATLAB Versions

All

Rule

Sub ID a

When holding previous past values, Tapped Delay block shall be used to create a vector signal from all held values.

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

The Tapped Delay block is not used.

Sub ID b

When holding past values, Delay block shall be used to obtain the oldest value only

Custom Parameter

Not Applicable

Example — Correct

Example — Incorrect

The Delay block is not used.

Rationale

Sub ID a:

  • Tapped Delay is set with arrays that hold past values, which improves code readability to assist code efficiency.

Sub ID b:

  • Improves model readability and code efficiency.

Verification

Model Advisor check: Check for cascaded Unit Delay blocks (Simulink Check)

Last Changed

R2020a

See Also

Version History

Introduced in R2020a