| Embedded Target for Texas Instruments C6000 DSPs | ![]() |
Creating Your Simulink Model for Targeting
You create real-time digital signal processing models the same way you create other Simulink models--by combining standard DSP blocks and C-MEX S-functions.
You add blocks to your model in several ways:
Once you have designed and built your model, you generate C code and build the real-time executable by clicking Build on the Real-Time Workshop pane of the Simulation Parameters dialog. The automatic build process creates the file modelname.out containing a real-time model image in COFF file format that can run on your target.
The file modelname.out is an executable whose format is target specific. You can load the file to your target and execute it in real time. Refer to your Real-Time Workshop documentation for more information about the build process.
Notes About Selecting Blocks for Your Models
Many blocks in the blocksets communicate with your MATLAB workspace. All the blocks generate code, but they do not work as they do on your desktop--they waste time waiting to send or receive data from your workspace, slowing your signal processing application without adding instrumentation value.
For this reason, we recommend you avoid using certain blocks, such as the Scope block and some source and sink blocks, in Simulink models that you use on Embedded Target for TI C6000 DSP targets. In the next table, we present the blocks you should not use in your target models.
In general, using blocks to add instrumentation to your application is a valuable tool. In most cases, blocks you add to your model to display results or create plots, such as Histogram blocks, add to your generated code without affecting your running application.
When you need to send data to or receive data from your target, use the To Rtdx and From Rtdx blocks to accomplish the data transfer.
| Testing Your C6701 EVM | C6701 EVM Tutorial 2-1--Single Rate Application | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |