Skip to Main Content Skip to Search
Product Documentation

Examples


Use this list to find examples in the documentation.

Advanced Code Generation

Specify Type Definition Location for User-Defined Data Types
Generate Source and Header Files with a Custom File Processing (CFP) Template
Create a Custom File and Function Banner Template
Customize a Code Generation Template (CGT) File for File and Function Banner Generation
Add a Configuration Wizard Block to Your Model
Create a Custom Configuration Wizard Block

Custom Storage Classes

Generate Code with Custom Storage Classes
Define Advanced Custom Storage Class Types
GetSet Custom Storage Class Example

Code Generation

Function Prototype Control Example
Sample Script for Configuring Function Prototypes
C++ Encapsulation Quick-Start Example
Sample Script for Configuring the Step Method for a Model Class
Modular Function Code for Nonvirtual Subsystems
Specify Code Generation Objectives Using the GUI
Specify Code Generation Objectives at the Command Line
Review the Model Without Generating Code
Review the Model During Code Generation
How to Create Custom Objectives
Import an AUTOSAR Software Component
Generate a Shared Library Version of Your Model Code
Create Application Code to Load and Use Your Shared Library File
Create a SIL Block
Techniques for Exporting Function-Call Subsystems
Function-Call Subsystem Export Example
Use Virtualized Output Ports Optimization

Memory Sections

Requirements for Defining Memory Sections
Define Memory Sections
Apply Memory Sections
Generated Code with Memory Sections

Data Structures, Code Modules, and Program Execution

Rate Grouping and the Static Main Program
Make Your S-Functions Rate Grouping Compliant

Code Replacement Libraries

Code Replacement Libraries Quick-Start Example
Map Math Functions to Target-Specific Implementations
Map the memcpy Function to a Target-Specific Implementation
Map Nonfinite Support Utility Functions to Target-Specific Implementations
Map Scalar Operators to Target-Specific Implementations
Add Code Replacement Library Reserved Identifiers
Examine and Validate Code Replacement Tables
Use the sl_customization API to Register a CRL with Simulink Software
Register Multiple CRLs

Verifying Generated Code

Demos of the Target Connectivity API

Makefiles

Creating a New XMakefile Configuration

Verification

Example — Performing a Model Block PIL Simulation via SCI Using Makefiles
Profiling by Tasks
Profiling by Subsystems
Profiling System Stack Use

IDE Automation Interface

Getting Started with IDE Automation Interface
Getting Started with IDE Automation Interface
Getting Started with IDE Automation Interface

Working with adivdsp Objects

Example — Constructor for adivdsp Objects
Example — Setting Object Property Values at Construction
Example — Setting Object Property Values Using set
Example — Retrieving Object Property Values Using get
Example — Direct Property Referencing in Links

IDE Project Generator

IDE Project Generator Tutorial
IDE Project Generator Tutorial
IDE Project Generator Tutorial

Working with ghsmulti Objects

Example — Constructor for ghsmulti Objects
Example — Setting Link Property Values at Construction
Example — Setting Link Property Values Using set
Example — Retrieving Link Property Values Using get
Example — Direct Property Referencing in Links

Working with ticcs Objects

Getting Started with RTDX
Example — Constructor for ticcs Objects

Exporting Filter Coefficients from FDATool

Exporting Filter Coefficients from FDATool to the CCS IDE Editor
Changing Filter Coefficients Stored on Your Processor

Simple Example Applications

Parameter Tuning and Signal Logging

Real-Time Target

Using External Mode

Q Format Examples

Example — Q.15
Example — Q1.30
Example — Q-2.17
Example — Q17.-2
Example — Q.15
Example — Q1.30
Example — Q-2.17
Example — Q17.-2

Targeting Tutorials

Targeting Tutorial — Single Rate Application
Targeting Tutorial II — A More Complex Application

Asynchronous Scheduler

Asynchronous Scheduler Examples
Free-Running DSP/BIOS Task
Idle Task
Hardware Interrupt Triggered DSP/BIOS Task
Hardware Interrupt Triggered Task

Profiling Code

Profiling Multitasking Systems
Profiling Your Generated Code

Target Preferences

Creating a Custom Target Preferences Block for OMAP-L138/C6748 EVM

Related Products & Applications

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