User`s guide
Upsample
5-486
Latency and Initial Conditions
Zero Latency. The Upsample block has zero tasking latency for all single-rate 
operations. The block is single-rate for the particular combinations of sampling 
mode and parameter settings shown in the table below. 
The block also has zero latency for all multirate operations in Simulink’s 
single-tasking mode.
Zero tasking latency means that the block propagates the first input (received 
at t=0) immediately following the D consecutive zeros specified by the 
Sample 
offset
 parameter. This output (D+1) is followed in turn by the L-1 inserted 
zeros and the next input sample. The 
Initial condition parameter value is not 
used.
Nonzero Latency. The Upsample block has tasking latency only for multirate 
operation in Simulink’s multitasking mode:
•In sample-based mode, the initial condition for each channel appears as 
output sample D+1, and is followed by L-1 inserted zeros. The channel’s first 
input appears as output sample D+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 appears as 
output sample D+1, and is followed by L-1 inserted rows of zeros, the second 
row of the initial condition matrix, and so on. The first row of the first input 
matrix appears in the output as sample M
i
L+D+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.
Sampling Mode Parameter Settings
Sample-based  Upsample factor parameter, L, is 1.
Frame-based 
Upsample factor parameter, L, is 1, or 
Frame-based mode parameter is Maintain input 
frame rate
.










