Motorola DSP Developer's Kit    

Tutorial of Advanced Features

The MOT563_MEAN and MOT563_SMEAN functions in the Motorola DSP Developer's Kit Toolbox / Blockset respectively are used as examples to illustrate certain features of the Motorola DSP Developer's Kit in INTERACTIVE mode. This tutorial assumes you have configured your environment as per Building Motorola DSP MEX-Files.

Building and Running MOT563_MEAN

To use the MOT563_MEAN function binary in the INTERACTIVE mode with the GUI of the Suite56 DSP Simulator, recompile with the STANDALONE flag. To do so, enter at the MATLAB command prompt:

Recompile the MEX-function.

This creates mot563_mean library binary in the current directory. To run the MEX-file with a simple input variable example, enter

at the MATLAB command prompt. The GUI splashscreen of the Suite56 DSP Simulator appears. At the same time, the existing MATLAB command window freezes and a new, temporary MATLAB workspace or engine session output window appears. Use this second MATLAB workspace and the Suite56 DSP Simulator to analyze DSP data.

The MEX-file execution is paused, ready to start execution of the loaded DSP assembly or C program. From this point, enter any valid Suite56 DSP Simulator command at the Simulator command line. For example, to simply run the loaded assembly or C-code, enter

or use the GUI buttons in the toolbar. For more information on using the Suite56 DSP simulator, read the Motorola DSP Simulator Reference Manual. Exiting the Simulator destroys the temporary MATLAB workspace or engine session and returns you to the main MATLAB workspace.

Building and Running MOT563_SMEAN

Use of the MOT563_SMEAN function binary in the INTERACTIVE mode with the GUI of the Suite56 DSP Simulator is essentially the same as for the MOT563_MEAN function as described in Building and Running MOT563_MEAN. Only the running of the S-Function MEX-file is performed differently to running the MATLAB MOT563_MEAN function.

Create a new Simulink model, incorporating the MOT563_SMEAN block. Edit the block's "Simulation Time to enter Interactive Mode" parameter to 5 and run the simulator. For more information on creating and running a new model, see The Simulink MOT563_SMAX Example


 S-Function Blocks callMatlab