Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

 

Training - Courses

SLEC: Real-Time Workshop Embedded Coder for Production Code Generation

This hands-on, three-day course focuses on developing models in the Simulink® environment to deploy on embedded systems. The course is designed for Simulink® users who intend to generate, validate, and deploy embedded code using Real-Time Workshop®. Topics include:

  • Generated code structure and execution
  • Code generation options and optimizations
  • Integrating generated code with external code
  • Customizing generated code
  • Customizing data
  • Deploying code
VIEW SCHEDULE and Register SHARE with Manager/Colleague
 
 Detailed course outline

 

Day 1 of 3
Introduction

Objective: Identify where the use of Real-Time Workshop Embedded Coder™ is appropriate and set up the class files.

  • Introduction to The MathWorks
  • The MathWorks product family
  • Uses of Real-Time Workshop Embedded Coder
  • Course outcomes
  • Computer setup
Generating Embedded Code

Objective: Configure Simulink® models for embedded code generation and effectively interpret the generated code.

  • System specification
  • Generating ERT code
  • Code modules
  • Data structures in generated code
  • Real-Time Workshop software build process
Integrating Generated Code with External Code

Objective: Modify models and files to run generated code and external code together.

  • Overview of model entry points
  • Using an execution harness
  • Including custom routines
  • Configuring data exchange with external code
  • Generating code for multirate systems
Optimizing Generated Code

Objective: Identify the requirements of the application at hand and configure optimization settings to satisfy these requirements.

  • Optimization considerations
  • Removing unnecessary code
  • Removing unnecessary data support
  • Optimizing data storage
  • Code generation objectives
  • Configuration wizards
Day 2 of 3
Data Characteristics in Simulink®

Objective: Control the data types and storage class of data in Simulink®.

  • Data characteristics
  • Data type classification
  • Simulink® data type configuration
  • Simulink® storage classes
  • Setting signal storage classes
  • Setting parameter storage classes
  • Impact of storage classes on symbols
Customizing Data Characteristics Using Data Objects

Objective: Control data types and design custom storage classes using data objects.

  • Simulink® data objects overview
  • Controlling data types with data objects
  • Creating reconfigurable data types
  • Effect of storage classes on symbols
  • Custom storage classes (CSCs)
  • Using predefined custom storage classes
  • Designing custom storage classes
  • Bus signals and their storage classes
  • Controlling data type names
  • Controlling variable names
Customizing Generated Code Architecture

Objective: Control the architecture of the generated code according to application requirements.

  • Simulink® model architecture
  • Controlling Simulink® code partitioning
  • Generating reusable code
  • Data placement options
  • Priority of data placement controls

 

Day 3 of 3
Advanced Customization Techniques

Objective: Use code generation templates to control the generated files.

  • Review of the code generation process
  • Overview of code generation templates
  • Custom file processing
  • Defining code generation templates
  • Using code generation templates
Deploying Generated Code

Objective: Collect necessary data and identify the necessary steps for custom target development.

  • Motivation for custom targets
  • Custom target development process
  • Target directory structure
  • The system target file
  • Configuring the PRT custom target
  • Template makefiles
  • Intervening in the build process
  • Setting up configuration parameters
Introduction to Developing Device Drivers

Objective: Identify the necessary components, templates, and steps for developing device drivers.

  • Overview of device drivers
  • Using the Legacy Code Tool
  • Customizing device driver components
  • Creating a device driver library

Embedded System Development

Objective: Build and run code on STR9-comStick USB start kit hardware using a custom embedded target in Real-Time Workshop Embedded Coder.

  • Model-Based Design for embedded system development
  • System specification
  • Algorithm simulation
  • Software-in-the-loop (SIL)
  • Code generation
  • Processor-in-the-loop (PIL) and system integration
Improving Code Efficiency and Compliance

Objective: Inspect the efficiency of generated code and verify compliance with standards and guidelines.

  • The Model Advisor
  • Hardware implementation parameters
  • Compliance with standards and guidelines
Conclusion

Objective: Find resources for further information and training on the topic, and evaluate the class.

  • Resources
  • Related training courses
  • Evaluations

Prerequisites

Simulink® for System and Algorithm Modeling (or Simulink® for Automotive System Design or Simulink® for Aerospace System Design and Adopting Model-Based Design, or working experience with Simulink® and Simulink® data. Knowledge of C programming is strongly recommended for attendees who want to benefit from code inspection. Prior exposure to embedded programming, fixed-point arithmetic, and C MEX S-functions is helpful. The courses Real-Time Workshop Fundamentals and Integrating Code with Simulink® are also recommended.

Course Length - 3  days

Price - $1,950.00

Request training
E-mail this page
Print this page