User`s guide
3 Working with Signals
3-60
Unbuffering a Frame-Based Signal into a Sample-Based Signal
You can unbuffer a multichannel frame-based signal into a multichannel
sample-based signal by using the Unbuffer block in the Buffers library (in
Signal Management).
The Unbuffer block performs the inverse operation of the Buffer block’s
“sample-based to frame-based” buffering process, and generates an N-channel
sample-based output from an N-channel frame-based input. The first row in
each input matrix is always the first sample-based output. In other words, the
Unbuffer block unbuffers each input frame from the top down.
The sample period of the sample-based output, T
so
, is related to the input
frame period, T
fi
, by the input frame size, M
i
.
The Unbuffer block always preserves the signal’s sample period (T
so
=T
si
). See
“Converting Sample Rates and Frame Rates” on page 3-20 for more
information about rate conversions.
Example: Unbuffering a Frame-Based Signal. In the model below, a two-channel
frame-based signal is unbuffered into a two-channel sample-based signal.
To build the model, make the following parameter settings:
•In Signal From Workspace:
-
Signal = [1:10;-1:-1:-10]'
- Sample time = 1
- Samples per frame = 4
T
so
T
fi
M
i
⁄=
Four consecutive samples from a
2-channel sample-based signal
2-channel frame-based signal
11–
22–
33–
44–
[1 -1]
[2 -2]
[3 -3]
[4 -4]
t=4t=5t=6t=7