| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
• Introduction to Real-Time Workshop Technology
• Developing Models for Code Generation
Setting Up Your Modeling Environment
• Laying Out the Model Architecture
• Creating Reusable Components
• Supporting Shared Utility Directories in the Build Process
• Creating Component Object Libraries and Enhancing Simulation Performance
• Block Support Considerations
• Single-Tasking and Multitasking Execution Modes
• Example: Single-Tasking and Multitasking Execution of a Model
• Simulation Considerations That Affect Code Generation
• Defining Data Representation and Storage for Code Generation
Deciding on Data Representation and Storage
Tunable Parameter Storage Classes
• Using the Model Parameter Configuration Dialog Box
• Linear Block Parameter Tunability
Parameter Configuration Quick Reference Diagram
Generated Code for Parameter Data Types
• Signals with Auto Storage Class
Interfacing Signals to External Code
Symbolic Naming Conventions for Signals in Generated Code
• Simulink Data Object Considerations
Parameter Object Configuration Quick Reference Diagram
• Using Signal Objects to Initialize Signals and Discrete States
• Resolving Conflicts in Configuration of Parameter and Signal Objects
• Enumerated Data Type Considerations
Default Code for an Enumerated Data Type
• Overriding Default Methods (Optional)
• Preparing Models for Code Generation
• Configuring a Model for Code Generation
• Getting Familiar With Model Configuration Options That Pertain To Code Generation
Enabling Instrumentation for Debugging
• Selecting and Configuring a Target
• Generating Code and Building Executables
• Generating Reports for Code Reviews and Traceability Analysis
• Choosing and Configuring a Compiler
• Configuring the Build Process
• Files and Directories Created by the Build Process
Reducing Build Time for Referenced Models
Optimization Parameters Overview
• Minimizing Computations and Storage for Intermediate Results
• Block Diagram Performance Tuning
Configuring a Loop Unrolling Threshold
• Optimizing Code Generated for Vector Assignments
Controlling Memory Allocation for Time Counters
• Optimizing Code Resulting from Floating-Point to Integer Conversions
• Converting MATLAB Code to C Code
• Workflows for Converting M-Code to C Code
Installing Prerequisite Products for Embedded MATLAB Coder
• File Paths and Naming Conventions
Can I Add Files to the Embedded MATLAB Path?
When to Use the Embedded MATLAB Path
• Making M-Code Compliant with the Embedded MATLAB Subset
• Configuring Your Environment for Code Generation
Types of Configuration Objects
Working with Configuration Objects
Creating Configuration Objects
• Specifying Properties of Primary Function Inputs
Why You Must Specify Input Properties
Rules for Specifying Properties of Primary Inputs
Methods for Defining Properties of Primary Inputs
How to Select the File Partitioning Method
Partitioning Generated Files When You Generate One C File Per M-File
• Working with Compilation Reports
Generating Compilation Reports
Names and Locations of Compilation Reports
Description of Compilation Reports
Viewing Call Stack Information
Viewing the Compilation Summary Information
Viewing Error and Warning Messages
Viewing Variables in Your M-Code
Viewing Target Build Information
• Calling Generated C Functions
Calling C Functions from the Embedded MATLAB Subset
Calling Initialize and Terminate Functions
• Integrating Custom C Code with Generated Code
About Custom C Code Integration with Embedded MATLAB Coder
• Speeding Up Simulation with the Basic Linear Algebra Subprograms (BLAS) Library
• Integrating External Code With Generated C and C++ Code
• About External Code Integration
Integrating External Code Using Model Configuration Parameters
• Integrating External Code Using Custom Code Blocks
Example: Using a Custom Code Block
Preventing User Source Code from Being Deleted from Build Directories
• Integrating External Code Using S-Functions
• Introduction to S-Functions for Code Generation
• Writing Noninlined S-Functions
• Writing Fully Inlined S-Functions
• Automating the Generation of Files for Fully Inlined S-Functions Using Legacy Code Tool
• Writing Fully Inlined S-Functions with the mdlRTW Routine
Guidelines for Writing Inlined S-Functions
• Writing S-Functions That Support Expression Folding
Writing S-Functions That Specify Port Scope and Reusability
Writing S-Functions That Specify Sample Time Inheritance Rules
Writing S-Functions That Support Code Reuse
• Writing S-Functions for Multirate Multitasking Environments
• Setting Up Generated Code To Interface With Components in the Run-Time Environment
• Configuring the Target Environment
• Interfacing With a Real-Time Operating System
• Resources for Wind River Systems Tornado Applications
• Wind River Systems Tornado Application Architecture
• Installing the Wind River Systems Tornado Software
• Implementing a Wind River Systems Tornado Application
• Interacting with Target Application Signals and Parameters Using the C API
• Generating Model Information for Host-Based ASAP2 Data Measurement and Calibration
• Communicating With Code Executing on a Target System Using Simulink External Mode
• Using the External Mode User Interface
• External Mode Compatible Blocks and Subsystems
• External Mode Communications Overview
• Client/Server Implementations
Using External Mode Programmatically
• Creating a TCP/IP Transport Layer for External Communication
Accessing Memory in Generated Code
• Verifying Generated Code Applications
• Testing and Refining Concept Models With Host-Based Simulations
• Testing and Refining Concept Models With Standalone Rapid Simulations
General Rapid Simulation Workflow
Identifying Your Rapid Simulation Requirements
Configuring Inport Blocks to Provide Rapid Simulation Source Data
Configuring and Building a Model for Rapid Simulation
• Setting Up Rapid Simulation Input Data
• Testing and Refining a Model With Rapid Prototyping
• Verifying Generated Source Code With Software-In-the-Loop Simulation
• Introducing the Target Language Compiler
• What Is the Target Language Compiler?
• Target Language Compiler Capabilities
• Target Language Compiler Tutorials
• Reading Record Files with TLC
• Inlining S-Functions with TLC
• Exploring Variable Names and Loop Rolling
• Code Generation Architecture
• Understanding the model.rtw File
Introduction to the model.rtw File
Using Scopes in the model.rtw File
• Object Information in the model.rtw File
• Directives and Built-In Functions
• Configuration Parameters for Simulink Models
• Real-Time Workshop Pane: General
Real-Time Workshop: General Tab Overview
Custom compiler optimization flags
Configuration Set Objectives Dialog Box
• Real-Time Workshop Pane: Report
• Real-Time Workshop Pane: Comments
Real-Time Workshop: Comments Tab Overview
Simulink block / Stateflow object comments
Verbose comments for SimulinkGlobal storage class
Simulink data object descriptions
• Real-Time Workshop Pane: Symbols
Real-Time Workshop: Symbols Tab Overview
Generate scalar inlined parameter as
• Real-Time Workshop Pane: Custom Code
Real-Time Workshop: Custom Code Tab Overview
Use the same custom code settings as Simulation Target
Use local custom code settings (do not inherit from main model)
• Real-Time Workshop Pane: Debug
Real-Time Workshop: Debug Tab Overview
Start TLC debugger when generating code
• Real-Time Workshop Pane: Interface
Real-Time Workshop: Interface Tab Overview
Support: floating-point numbers
Support: non-inlined S-functions
Support: variable-size signals
Reusable code error diagnostic
Use operator new for referenced model object registration
Generate preprocessor conditionals
Suppress error status in real-time model data structure
Configure C++ Encapsulation Interface
Create Simulink (S-Function) block
• Real-Time Workshop Pane: RSim Target
Real-Time Workshop: RSim Target Tab Overview
• Real-Time Workshop Pane: Real-Time Workshop S-Function Code Generation Options
• Configuration Parameters for Embedded MATLAB Coder
• Real-Time Workshop Dialog Box for Embedded MATLAB Coder
• Automatic C MEX Generation Dialog Box for Embedded MATLAB Coder
• Hardware Implementation Dialog Box for Embedded MATLAB Coder
Check solver for code generation
Identify questionable blocks within the specified system
Check for model reference configuration mismatch
Check the hardware implementation
Identify questionable software environment specifications
Identify questionable code instrumentation (data I/O)
Check for blocks that have constraints on tunable parameters
Identify questionable subsystem settings
Identify blocks that generate expensive saturation and rounding code
Check sample times and tasking mode
Identify questionable fixed-point operations
Check model configuration settings against code generation objectives
• Blocks
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The MathWorks Web Site Resources |
|
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |
Store