User`s guide

Upsample
5-487
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
output frame period of 1 (0.25
4). The first channel should contain the
positive ramp signal 1, 2, ..., 100, and the second channel should contain the
negative ramp signal -1, -2, ..., -100.
-
Signal = [(1:100)' (-1:-1:-100)']
- Sample time = 0.25
- Samples per frame = 4
Configure the Upsample block to upsample the two-channel input by
increasing the output frame rate by a factor of 2 relative to the input frame
rate. Set a sample offset of 1, and an initial condition matrix of
-
Upsample factor = 2
- Sample offset = 1
- Initial condition = [11 -11;12 -12;13 -13;14 -14]
- Frame-based mode = Maintain input frame size
11 11
12 12
13 13
14 14