Real-Time Workshop Embedded Coder

Preface

Prerequisites

Related Products

Installing the Real-Time Workshop Embedded Coder

Typographical Conventions

Product Overview

Introduction

Real-Time Workshop Embedded Coder Demos
and Examples

Demos

ECRobot Target Example

Data Structures and Program Execution

Data Structures and Code Modules

Real-Time Model Data Structure

Code Modules

Generating the Main Program

Program Execution

Stand-Alone Program Execution

Main Program

rt_OneStep

VxWorks Example Main Program Execution

Overview

Task Management

Model Entry Points

The Static Main Program Module

Code Generation Options and Optimizations

Controlling and Optimizing the Generated Code

Basic Code Generation Options

Virtualized Output Ports Optimization

Generating Code from Subsystems

Generating Block Comments

Controlling Stack Space Allocation

Generating a Code Generation Report

Automatic S-Function Wrapper Generation

Generating an S-Function Wrapper

Limitations

Other Code Generation Options

Create Simulink (S-Function) Block

Generate ASAP2 File

Initialize Floats and Doubles to 0.0

Ignore Custom Storage Classes

External Mode

Parameter Structure

Generate An Example Main Program

Generate Reusable Code

Suppress Error Status in Real-Time Model
Data Structure

Target Floating Point Math Environment

Custom Storage Classes

Introduction to Custom Storage Classes

Properties of Predefined Custom Storage Classes

Class-Specific Storage Class Attributes

Other Custom Storage Classes

GetSet Custom Storage Class
for Data Store Memory

Designing Custom Storage Classes

Assigning a Custom Storage Class to Data

Code Generation with Custom Storage Classes

Ordering of Generated Storage Declarations

Sample Code Excerpts

Requirements, Restrictions, Target Files

Requirements and Restrictions

Unsupported Blocks

System Target File and Template Makefiles

Generating ASAP2 Files

Overview

Targets Supporting ASAP2

Defining ASAP2 Information

Generating an ASAP2 File

Customizing an ASAP2 File

Structure of the ASAP2 File


 Preface