User`s guide
Buffer
5-44
Note that the sequence is delayed by eight samples, which is the latency of the
block in Simulink’s multitasking mode for the parameter settings of this
example (see “Latency” below). The first eight output samples therefore adopt
the value specified for the
Initial conditions, which is assumed here to be zero.
Use the
rebuffer_delay function to determine the block’s latency for any
combination of frame size and overlap.
Latency Zero Latency
The Buffer block has zero tasking latency in Simulink’s single-tasking mode for
the following special cases:
•Scalar input and output (M
o
=M
i
= 1) with zero or negative Buffer overlap
(L ≤ 0)
•Scalar output (M
o
= 1) with zero Buffer overlap (L = 0) for any input frame
size M
i
•Equal input and output frame sizes (M
o
=M
i
) with zero Buffer overlap
(L = 0)
•Input frame size an integer multiple of the output frame size (M
i
/M
o
= k, for
an integer value of k) with zero
Buffer overlap (L = 0)
Zero tasking latency means that the first input sample (received at t=0)
appears as first output sample.
11
21
30
40
51
61
70
80
(M
o
=3, L=1)
first input
t=0t=4
Output frame period = (M
o
-L)∗T
si
ch2
ch1
ch2
ch1
Input frame period = 4∗T
si
11
21
30
51
61
70
30
40
51
first output
t=0t=10 t=2
ch2
ch1
ch2
ch1
ch2
ch1
00
00
11
00
00
00
00
00
00
ch2
ch1
ch2
ch1
ch2
ch1
t=4t=6t=8