Real-Time Workshop Embedded Coder |
 |
Introduction
The Real-Time Workshop® Embedded Coder is a separate, add-on product for use with Real-Time Workshop.
The Real-Time Workshop Embedded Coder provides a framework for the development of production code that is optimized for speed, memory usage, and simplicity. The Real-Time Workshop Embedded Coder is intended for use in embedded systems.
Real-Time Workshop Embedded Coder generates code that is easy to read, trace, and customize for your production environment.
The Real-Time Workshop Embedded Coder generates code in the Embedded-C
format. Optimizations inherent in the Embedded-C
code format include
- Use of real-time model data structure optimizes memory usage specifically for your model. (In many cases, this structure can be removed entirely from the generated code.)
- Simplified calling interface reduces overhead and lets you easily incorporate the generated code into hand-written application code. Model output and update functions are combined into a single routine.
- In-lined S-functions (required) reduce calling overhead and code size.
- Static memory allocation reduces overhead and promotes deterministic performance.
The Real-Time Workshop Embedded Coder supports the following key features:
- Automatic generation of an example main program, with comments detailing how to deploy the code generated for a model with or without an operating system
- Automatic generation of a deterministic multirate scheduler for single- and multitasking environments (further simplifying code deployment)
- Single- and multiple instance code generation; both using static memory allocation
- Supports asynchronous interrupt-driven execution of models with either single or multiple sample rates
- Integer only code generation
- Floating-point code generation (ANSI or ISO C library calls supported)
- Automatic generation of S-function wrappers, allowing you to validate the generated code in Simulink (Software-in-the-loop)
- Detailed HTML report fully documents the generated code, including active hyperlinks that trace code segments back to the model. The report describes code modules and helps to identify code generation optimizations relevant to your program.
- Code generation options let you optimize performance of data initialization and reduce ROM usage.
- Custom storage classes give you precise control over data symbols in the generated code, allowing you to interface virtually any class of structured or unstructured data.
- Automatic generation of an ASAP2 data export file to interface with commercial automotive calibration systems.
- Full support for all features of Simulink external mode. (See the External Mode section of the Real-Time Workshop documentation.)
This document describes the components of the Real-Time Workshop Embedded Coder provided with Real-Time Workshop. It also describes options for optimizing your generated code, and for automatically generating an S-function wrapper that calls your Real-Time Workshop Embedded Coder generated code from Simulink. In addition, certain restrictions that apply to the use of the Real-Time Workshop Embedded Coder are discussed.
We assume you have read Program Architecture and Models with Multiple Sample Rates in the Real-Time Workshop documentation. Those sections give a general overview of the architecture and execution of programs generated by Real-Time Workshop.
| Product Overview | | Real-Time Workshop Embedded Coder Demos and Examples |  |