DSP Blockset    

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, Tso, is related to the input frame period, Tfi, by the input frame size, Mi.

The Unbuffer block always preserves the signal's sample period (Tso = Tsi). See Converting Sample Rates and Frame Rates 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:

The Signal From Workspace block generates a two-channel frame based-signal with frame size 4 (because the Samples per frame parameter is set to 4). The Unbuffer block unbuffers this signal to a two-channel sample-based signal.


  Splitting a Multichannel Signal into Individual Signals Reordering Channels in a Frame-Based Multichannel Signal