User`s guide
Repeat
5-371
The block also has zero latency for all multirate operations in Simulink’s
single-tasking mode.
Zero tasking latency means that the block repeats the first input (received
at t=0) for the first L output samples, the second input for the next L output
samples, and so on. The
Initial condition parameter value is not used.
Nonzero Latency. The Repeat block has tasking latency only for multirate
operation in Simulink’s multitasking mode:
•In sample-based mode, the initial condition for each channel is repeated for
the first L output samples. The channel’s first input appears as output
sample L+1. The
Initial condition value can be an M
i
-by-N matrix
containing one value for each channel, or a scalar to be applied to all signal
channels.
•In frame-based mode, the first row of the initial condition matrix is repeated
for the first L output samples, the second row of the initial condition matrix
is repeated for the next L output samples, and so on. The first row of the first
input matrix appears in the output as sample M
i
L+1. The Initial condition
value can be an M
i
-by-N matrix, or a scalar to be repeated across all elements
of the M
i
-by-N matrix. See the example below for an illustration of this case.
See “Excess Algorithmic Delay (Tasking Latency)” on page 3-91 and “The
Simulation Parameters Dialog Box” in the Simulink documentation for more
information about block rates and Simulink’s tasking modes.
Example Construct the frame-based model shown below.
Adjust the block parameters as follows.
•Configure the Signal From Workspace block to generate a two-channel
signal with frame size of 4 and sample period of 0.25. This represents an