| Contents | Index |
| On this page… |
|---|
Embedded Coder software provides a connection between MATLAB and the VisualDSP++ IDE to enable you to access the processor from MATLAB. You can, manipulate data on the processor, and manage projects within the IDE, while simultaneously utilizing the MATLAB tools of numerical analysis and simulation. Using Embedded Coder software, you can perform the following tasks, and others related to Model-Based Design:
Function calls — Write scripts in MATLAB software to execute any function in the VisualDSP++ IDE
Automation — Write automated tests in MATLAB software to be executed on your processor, including control and verification operations
Host-Processor Communication — Communicate with the processor directly from MATLAB software, without going to the IDE
Verification and Validation
Load and execute projects into the VisualDSP++ IDE from the MATLAB command line
Build and compile code, and then use vectors of test data and parameters to test the code
Build and compile your code, and then download the code to the processor and execute it
Design models — Design models and algorithms in MATLAB and Simulink software and run them on the processor
Generate code— Generate executable code for your processor directly from the models designed in Simulink software, and execute it
Embedded Coder software connects MATLAB software and Simulink software with Analog Devices VisualDSP++ integrated development and debugging environment from Analog Devices. Embedded Coder software enables you to use MATLAB and Simulink software to debug and verify embedded code running on all Analog Devices DSPs that VisualDSP++ software supports, such as the Analog Devices Blackfin, Analog Devices SHARC and Analog Devices TigerSHARC processor families.
Embedded Coder software includes an IDE Project Generator component. With the IDE Project Generator component, you can generate a complete project for the VisualDSP++ IDE from your Simulink software models. You use Embedded Coder software to generate generic ANSI C code projects for VisualDSP++ software from models. You can then build and run these projects on Blackfin, SHARC, and TigerSHARC processors.
The following list suggests some of the uses for the capabilities of the software:
Create test benches in MATLAB and Simulink software for testing your manually written or automatically generated code running on ADI DSPs
Generate code and project files for VisualDSP++ software from Simulink models for rapid prototyping or deployment of a system or application
Build, debug, and verify embedded code on ADI DSPs
Perform processor-in-the-loop (PIL) testing of embedded code
Embedded Coder software comprises components—the IDE Automation Interface component, the IDE Project Generator component, and the Verification component. The IDE Automation Interface component enables communication between MATLAB software and Embedded Coder software. The IDE Project Generator component leverages Simulink software and lets you build models, simulate them, and generate code from the models directly to the processor.
The Verification component offers capabilities that help you use Model-Based Design to validate and verify your projects. With the Verification component, you can simulate algorithms and processes in Simulink models and concurrently on your processor. Comparing the results helps verify the fidelity of you model or algorithm code.
The IDE Automation Interface component allows you to use Embedded Coder functions and methods to communicate with the VisualDSP++ IDE to perform the following tasks:
Automate project management
Debug programs
Manipulate the data in the processor internal and external memory, and in the registers
Communicate between the host and processor applications
The Debug Component of IDE Automation Interface includes methods and functions for project automation, debugging, and data manipulation.
The IDE Project Generator component comprises methods that utilize the VisualDSP++ API to create projects in VisualDSP++ software and generate code with Simulink Coder and Embedded Coder software. With the interface, you can do the following:
Automatic project-based build process — Automatically create and build projects for code generated by Embedded Coder software.
Custom code generation — Use System Target Files (STF) to generate processor-specific and optimized code.
Automatic downloading and debugging — Debug generated code in the VisualDSP++ debugger, using either the instruction set simulator or real hardware.
Create and build projects for VisualDSP++ software from Simulink models — IDE Project Generator uses Simulink Coder or Embedded Coder software to build projects that work with Analog Devices processors.
Generate custom code using the Configuration Parameters in your model with the system target files vdsplink_ert.tlc and vdsplink_grt.tlc.
Verifying your processes and algorithms is an essential part of developing applications. The components of Embedded Coder software combine to provide the following verification tools for you to apply as you develop your code:
Processor-in-the-loop simulation (PIL)
Execution profiling
Stack profiling
For detailed information about the software and hardware required to use Embedded Coder software, refer to the Embedded Coder system requirements areas on the MathWorks Web site:
Requirements for Embedded Coder: www.mathworks.com/products/ide-link/requirements.html
Requirements for use with VisualDSP++: www.mathworks.com/products/ide-link/adi-adaptor.html
Install VisualDSP++ according to the instructions provided with that software.
Right-click MATLAB in the Windows Programs menu and select Run as administrator.
Enter adivdspsetup on the MATLAB command line.
Use Browse to locate the system folder for Analog Devices VisualDSP++. This action registers the Embedded Coder with that IDE.

Confirm that the installation works by entering IDE_Obj = adivdsp on the MATLAB command line. This action creates an IDE handle object for VisualDSP++ in MATLAB, and starts VisualDSP++.
![]() | Working with Analog Devices VisualDSP++ IDE | IDE Automation Interface | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |