User`s guide

Delay and Latency
3-93
Example: Nonzero Tasking Latency. Most multirate blocks experience tasking
latency only in Simulink’s multitasking mode. As an example, consider the
following model.
To engage Simulink’s multitasking mode, adjust the following settings in the
Solver panel of the Simulation Parameters dialog box:
Type = Fixed-step
Mode = MultiTasking
Use the default settings for the Mux and To Workspace blocks. Adjust the other
blocks’ parameter settings as follows:
Set the Signal From Workspace block’s parameters to the values below.
-
Signal = 1:100
- Sample time = 1/4
- Samples per frame = 4
Set the Upsample block’s parameters to the values below. The Maintain
input frame size
setting of the Frame-based mode parameter makes the
block (and model) multirate since the input and output frame rates will not
be equal.
-
Upsample factor = 4
- Sample offset = 0
- Initial condition = -1
- Frame-based mode = Maintain input frame size
Set the Sample time parameter of the Digital Clock block to 0.25 to match
the sample period of the Upsample block’s output.