Products & Services Solutions Academia Support User Community Company

Learn more about Signal Processing Blockset   

dspstartup - Configure Simulink environment for signal processing systems

Syntax

dspstartup

Description

dspstartup configures Simulink environment parameters with settings appropriate for a typical signal processing project. You can use the dspstartup function in the following ways:

When the function successfully configures your Simulink environment, MATLAB displays the following message in the command window.

Changed default Simulink settings for signal processing 
systems (dspstartup.m).

The dspstartup.m file executes the following commands. See Model and Block Parameters in the Simulink documentation.

set_param(0, ...
          'SingleTaskRateTransMsg','error', ...
          'multiTaskRateTransMsg', 'error', ...
          'Solver',                'fixedstepdiscrete', ...
          'SolverMode',            'SingleTasking', ...
          'StartTime',             '0.0', ...
          'StopTime',              'inf', ...
          'FixedStep',             'auto', ...
          'SaveTime',              'off', ...
          'SaveOutput',            'off', ...
          'AlgebraicLoopMsg',      'error', ...
          'SignalLogging',         'off');

Examples

Add a call to the dspstartup function from your startup.m file:

  1. To find out if there is a startup.m file on your MATLAB path, run the following code at the MATLAB command line:

    which startup.m
  2. If MATLAB returns 'startup.m' not found., see Startup Options in the MATLAB documentation to learn more about the startup.m file.

    If MATLAB returns a path to your startup.m file, open that file for editing.

    edit startup.m
  3. Add a call to the dspstartup function. Your startup.m file now resembles the following code sample:

    %STARTUP   Startup file
    %   This file is executed when MATLAB starts up, if it exists 
    %   anywhere on the path.  In this case, the startup.m file
    %   runs the dspstartup.m file to configure the Simulink
    %   environment with settings appropriate for typical 
    %   signal processing projects.
    
    dspstartup;

See Also

startup

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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