|On this page…|
Before you begin working, you need to install the product on your computer.
The DSP System Toolbox™ software follows the same installation procedure as the MATLAB® toolboxes.
Installing the documentation is part of the installation process:
Installation from a DVD — Start the MathWorks® installer. When prompted, select the Product check boxes for the products you want to install. The documentation is installed along with the products.
Installation from a Web download — If you update the DSP System Toolbox software using a Web download and you want to view the documentation with the MATLAB Help browser, you must install the documentation on your hard drive.
Download the files from the Web. Then, start the installer, and select the Product check boxes for the products you want to install. The documentation is installed along with the products.
The DSP System Toolbox product is part of a family of MathWorks products. You need to install several products to use the toolbox. For more information about the required products, see the MathWorks Web site, at http://www.mathworks.com/products/dsp-system/requirements.html.
MathWorks provides several products that are relevant to the kinds of tasks you can perform with DSP System Toolbox software.
For more information about any of these products, see either
The online documentation for that product if it is installed on your system
The MathWorks Web site, at http://www.mathworks.com/products/dsp-system/related.html.
The DSP System Toolbox product provides a file, dspstartup.m, that lets you automatically configure the Simulink® environment for signal processing simulation. We recommend these configuration parameters for models that contain DSP System Toolbox blocks. Because these blocks calculate values directly rather than solving differential equations, you must configure the Simulink solver to behave like a scheduler. The solver, while in scheduler mode, uses a block sample time to determine when the code behind each block executes. For example, if the sample time of a Sine Wave block is 0.05, the solver executes the code behind this block and every other block with this sample time once every 0.05 seconds.
Note: When working with models that contain DSP System Toolbox blocks, use source blocks that allow you to specify a sample time. When your source block does not have a Sample time parameter, you must add a Zero-Order Hold block in your model and use it to specify the sample time. For more information, see Continuous-Time Source Blocks. The exception to this rule is the Constant block, which can have a constant sample time. When it does, Simulink executes this block and records the constant value once, which allows for faster simulations and more compact generated code.
To use the dspstartup file to configure Simulink for signal processing simulations, you can
Type dspstartup at the MATLAB command line. All new models have settings customized for signal processing applications. Existing models are not affected.
Place a call to dspstartup within the startup.m file. This is an efficient way to use dspstartup if you want these settings to be in effect every time you start Simulink. For more information about performing automated tasks at startup, see the documentation for the startup command in the MATLAB Function Reference.
The dspstartup file executes the following commands:
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');
You can edit the dspstartup file to change any of these settings or to add your own custom settings. For complete information about these settings, see Model Parameters in the Simulink documentation.
'SaveTime' is set to 'off'.
Simulink does not save the tout time-step vector to the workspace. The time-step record is not usually needed for analyzing discrete-time simulations, and disabling it saves a considerable amount of memory, especially when the simulation runs for an extended time.
'SaveOutput' is set to 'off'.