Skip to Main Content Skip to Search
Product Documentation

Examples


Use this list to find examples in the documentation.

Model Reference

Generating Code for Referenced Models
Code Reuse and Model Blocks with Root Inport or Outport Blocks
Generating Code for Referenced Models
Code Reuse and Model Blocks with Root Inport or Outport Blocks

Models

Single-Tasking and Multitasking Execution of a Model
Spawning a Wind River Systems VxWorks Task
Block Execution Order
Controlling Signal Object Code Generation from the Command Line
Other Optimization Tools and Techniques
Inlining Invariant Signals
Configuring a Loop Unrolling Threshold
Inlining Invariant Signals
Configuring a Loop Unrolling Threshold

Timing Services

Elapsed Timer Code Generation Example

Data Management

Nontunable Parameter Storage
Tunable Expressions in Masked Subsystems
Signals with Auto Storage Class
Symbolic Naming Conventions for Signals in Generated Code
Tunable Expressions in Masked Subsystems

Custom Code

Using a Custom Code Block
Using a Custom Code Block

S-Functions

TLC S-Function Wrapper
Writing Fully Inlined S-Functions
Multiport S-Function Example
S-Function RTWdata
The Direct-Index Lookup Table Example
TLC S-Function Wrapper
Writing Fully Inlined S-Functions
Multiport S-Function Example
S-Function RTWdata
The Direct-Index Lookup Table Example

Optimizations

Expression Folding for Blocks with Multiple Outputs
Optimizing Generated Code
Expression Folding Example
Expression Folding for Blocks with Multiple Outputs

Model Code Packaging

Code Packaging Example

External Mode

Setting Up an External Mode Communication Channel

Verification

Logging Data for Analysis
Example — Performing a Model Block PIL Simulation via SCI Using Makefiles

Interfaces

Generating Example C API Files
Using the C API in an Application

Advanced Code Generation

Example Build Process Customization Using sl_customization.m

Makefiles

Creating a New XMakefile Configuration

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