Time-varying filters operate by applying a fixed set of coefficients on short blocks (or "frames") of the signal;
the coefficients are varied from one frame to the next. In this part you will develop the basic technique used to
"frame" and "de-frame" a signal so that a filter can be applied individually to each frame.
Download and open framing.vi.
The "Reshape Array" node forms the heart of
framing and de-framing, since you can reshape the incoming 1-D signal vector into a 2-D array of frames.
The auto-indexing feature of the "for loop" structure automatically loops over all of the frames, so it is not necessary
to wire a value to the loop termination terminal. You can access the individual frame as a 1-D vector inside the loop structure.
Auto-indexing is also used on the loop output to create a new 2-D array, so "Reshape Array" is again used to convert
the signal back to a 1-D vector.
Study the entire VI, including the unconnected blocks which you will find useful. Complete the VI so that you can
select frame sizes of between 1 and 9. Enable the "Highlight Execution" option, and display your block diagram and
front panel simultaneously (press Ctrl-T). Convince yourself that your technique works properly. For example, when
you select a frame size of 2, you should observe that the front-panel indicator "frame" displays "0,1", then "2,3", then "4,5",
and so on. You should also observe that the "out" indicator matches the original.
"A multimedia educational resource for signal processing students and faculty."