Filter Realization Wizard - Construct filter realizations using Digital Filter block or Sum, Gain, and Delay blocks

Library

Filtering / Filter Designs

dsparch4

Description

The Filter Realization Wizard is a tool for automatically implementing a digital filter. You must specify a filter, its structure, and the data types for the filter's inputs, outputs, and computations. The filter can support double-precision, single-precision, or fixed-point data types.

The Filter Realization Wizard can implement a digital filter in one of two ways. It can use a Digital Filter block, or it can create a subsystem block that implements the specified filter using Sum, Gain, and Delay blocks. If the Filter Realization Wizard creates a Digital Filter block, double-click the block to open the Block Parameters: Filter dialog box. If it creates a subsystem, double-click the subsystem block to see the filter implementation as shown in the figure below.

The subsystem block applies the specified filter to any sample-based input signal, or any frame-based row vector signal, and outputs the result. For more information about filter implementation, see Specifying the Filter Implementation.

The parameters of the Filter Realization Wizard are a part of a larger GUI, the Filter Design and Analysis Tool (fdatool), from the Signal Processing Toolbox product. You can use the tools in FDATool to design and analyze your filter, and then use the Filter Realization Wizard parameters to implement the filter in your models.

Sections of This Reference Page

Valid Inputs and Corresponding Outputs

When the Filter Realization Wizard implements the specified filter by creating a new subsystem block, the block applies the specified filter to an input signal and outputs the result.

Valid Inputs

The subsystem block accepts inputs that are

Corresponding Outputs

The output of the subsystem block has the same dimensions and frame status as the input.

What Is Considered an Independent Channel

The subsystem block treats each element of a vector or matrix as an independent channel.

Specifying the Filter and Its Data Type Support

To specify a purely double-precision filter, you can either design a filter using the Design Filter panel, or import a filter using the Import Filter panel. (You can import dfilt filter objects as well as vectors of filter coefficients designed using Signal Processing Toolbox functions and Filter Design Toolbox functions.)

You can also specify a fixed-point filter or a single-precision filter. You can specify such filters by using the Set Quantization Parameters panel, which requires the Filter Design Toolbox product.

See the following topics to learn how to use the panels to specify your filter:

To open a panel, click the appropriate button in the lower-left corner of FDATool.

Supported Filter Structures

The Filter Realization Wizard supports the following structures:

Specifying the Filter Implementation

You can determine how the Filter Realization Wizard models the specified filter using the Build model using basic elements check box. When you select this check box, the Filter Realization Wizard creates a subsystem block that implements your filter using Sum, Gain, and Delay blocks. When you clear this check box, the Filter Realization Wizard uses a Digital Filter block to implement your filter. The Build model using basic elements check box is only available when your filter can be implemented using a Digital Filter block.

If you have Signal Processing Blockset software, Signal Processing Toolbox software, and Filter Design Toolbox software installed on your system, the Filter Realization Wizard can generate a subsystem that represents either a double-precision or fixed-point filter. You must install the Simulink Fixed Point product to simulate a fixed-point filter. You can still edit the blocks used to implement the filter without installing the Simulink Fixed Point product.

Implementations of Double-Precision and Fixed-Point Filters

Corresponding Method for dfilt

The Signal Processing Toolbox dfilt (digital filter) object in has a method, realizemdl, that allows you to access the capabilities of the Filter Realization Wizard from the command line.

For more information about the realizemdl method, see the following:

Dialog Box

Destination

Specify where the new filter block should be created. This can be in a new model or in the current (most recently selected) model.

Block Name

Enter the name of the new filter block.

Overwrite generated block "Filter" block

When selected, the block overwrites any filter block in the current model with the name specified in the Block Name parameter. This parameter is enabled when the Destination parameter is set to Current.

Build model using basic elements

Select this check box to implement your filter using Sum, Gain, and Delay blocks. Clear this check box to implement your filter using the Digital Filter block. This parameter is only available when your filter can be modeled using the Digital Filter block.

Note that when your filter is implemented using Sum, Gain, and Delay blocks, inputs to the filter must be sample based.

Optimize for zero gains

When selected, the block removes zero-gain paths from the filter structure. For an example, see Optimizing the Filter Structure.

Optimize for unity gains

When selected, the block substitutes gains equal to 1 with a wire (short circuit). For an example, see Optimizing the Filter Structure.

Optimize for negative gains

When selected, the block substitutes gains equal to -1 with a wire (short circuit), and changes the corresponding sums to subtractions. For an example, see Optimizing the Filter Structure.

Optimize delay chains

When selected, the block substitutes any delay chains made up of n unit delays with a single delay by n. For an example, see Optimizing the Filter Structure.

Realize Model

Click to create a subsystem block that implements the specified filter using Sum, Gain, and Delay blocks. To see the filter implementation, double-click the subsystem block. The subsystem block applies the specified filter to any sample-based input signal or frame-based row vector signal, and outputs the result.

References

Oppenheim, A. V. and R. W. Schafer. Discrete-Time Signal Processing. Englewood Cliffs, NJ: Prentice Hall, 1989.

Proakis, J. and D. Manolakis. Digital Signal Processing. 3rd ed. Englewood Cliffs, NJ: Prentice-Hall, 1996.

Supported Data Types

See Also

Digital FilterSignal Processing Blockset
Digital Filter DesignSignal Processing Blockset
filterFilter Design Toolbox
realizemdlFilter Design Toolbox
dfiltSignal Processing Toolbox
filterSignal Processing Toolbox

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS