Documentation

Configure the Simulink Environment for Signal Processing Models

About DSP Simulink Model Templates

The DSP Simulink® model templates let you automatically configure the Simulink environment with the recommended settings for digital signal processing modeling. DSP Simulink model templates enable reuse of settings, including configuration parameters. You can create models from templates that use best practices and take advantage of previous solutions to common problems. Instead of the default canvas of a new model, select a template model to help you get started.

For more information on Simulink model templates, see Create a New Model in the Simulink documentation.

Create Model Using DSP Simulink Model Templates

To use the DSP Simulink model templates:

  1. Open the Library Browser by typing simulink at the MATLAB® command prompt.

  2. Click the New Model button arrow and select From Template.

  3. In the Simulink Template Gallery, under DSP System Toolbox™, double-click the model template you want.

The new model using the template settings and contents appears in the Simulink Editor. The model is only in memory until you save it.

DSP Simulink Model Templates

When you create a model by choosing one of the DSP Simulink model templates, the model is configured to use the settings recommended for DSP System Toolbox. Some of these settings are:

Configuration ParameterSetting
SingleTaskRateTransMsgerror
multiTaskRateTransMsgerror
Solverfixedstepdiscrete
SolverModeSingleTasking
StartTime0.0
StopTimeinf
FixedStepauto
SaveTimeoff
SaveOutputoff
AlgebraicLoopMsgerror
SignalLoggingoff
FrameProcessingCompatibilityMsgerror

The three DSP Simulink model templates are:

Blank Model Template

Double-click Blank Model to create a blank model configured with settings recommended for DSP System Toolbox.

Basic Model Template

Double-click Basic Model to create a basic filtering model configured with settings recommended for DSP System Toolbox.

This model implements a low pass filter and enables you to compare the filtered signal with the original signal. The model acts as a starting point for modeling filtering algorithms in Simulink using DSP System Toolbox.

Audio Model Template

Double-click Audio Model to create an audio model configured with settings recommended for DSP System Toolbox.

This model uses a From Multimedia File block to read multimedia files, and a To Audio Device block to send sound data to your computer's audio device. The model acts as a starting point for modeling audio processing algorithms in Simulink using DSP System Toolbox.

Was this topic helpful?