Simulink Coder Fundamentals

Course Highlights

Simulink® Coder™ Fundamentals is a one-day course that provides a working introduction to automatic code generation with Simulink Coder and its add-on products. This course is designed for Simulink® users who intend to use Simulink Coder for real-time application development. Themes of real-time validation, rapid prototyping, and embedded software development are explored in the context of model-based design. Topics include:

  • The Roles of Simulink Coder
  • Real-Time Applications with xPC Target
  • Code Generation and Integration with External Code
  • In-the-Loop Verification and Deployment

Prerequisites

Working experience with Simulink is compulsory. Simulink® for System and Algorithm Modeling (or Simulink for Automotive System Design) can be taken to satisfy the prerequisite. Knowledge of C programming language is strongly recommended to learners who want to benefit from code inspection.

Course Outline

The Roles of Simulink Coder
Objective: This section explains the applications of Simulink Coder and how they fit in Simulink model-based design.

  • Role of Simulink Coder in simulation, prototyping, and Real-time testing applications
  • Simulation and prototyping applications
  • In-the-loop testing applications
  • Simulink Coder code architecture
  • Constraints of Simulink Coder

Real-Time Applications with xPC Target
Objective: This section introduces the use of xPC Target to generate real-time applications.

  • xPC Target product overview
  • Booting the xPC Target kernel
  • Generating an xPC Target application
  • Running a real-time application
  • xPC Target object
  • Accessing signals
  • Tuning parameters in real time

Code Generation and Integration with External Code
Objective: This section introduces the use of Simulink Coder and Embedded Coder to generate code for algorithm export.

  • Generic Real-Time (GRT) target overview
  • Generating GRT code from a model
  • Verifying GRT code
  • Embedded Real-Time (ERT) target overview
  • Generating embedded code from a model
  • Organization of ERT files
  • ERT data structures
  • Integrating code with external execution harness
  • Data logging and verifying ERT code

In-the-Loop Verification and Deployment

Objective: This section introduces the use of the Embedded Coder product for processor-in-the-loop verification and software deployment on the embedded target.

  • Model-Based Design for embedded system development
  • Algorithm simulation
  • Software-in-the-loop (SIL) verification
  • Processor-in-the-loop (PIL) verification
  • Real-time deployment