Real-Time Workshop Fundamentals

Course Highlights
Real-Time Workshop Fundamentals is a hands-on course that provides a working introduction
to automatic code generation with Real-Time Workshop and its add-on products. The
course is designed for Simulink users who intend to use Real-Time Workshop 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 Real-Time Workshop
• Nonreal-Time Applications with Simulation Targets
• Real-Time Execution Considerations
• Rapid Prototyping with Real-Time Windows Target
• Real-Time Applications with xPC Target
• ANSI/ISO C Code Generation with Generic Targets
• Software Deployment with Embedded Target for Motorola® MPC5


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 pre-requisite.
Knowledge of C programming language is strongly recommended to learners who
want to benefit from code inspection.

Course Outline

Introduction
Objective: This section provides an overview to the MathWorks and the course.
• Introduce the MathWorks
• Provide an overview to Real-Time Workshop
• Discuss course outline
• Set up for the course

The Roles of Real-Time Workshop
Objective: This section explains the applications of Real-Time Workshop and how they
fit in Simulink model-based design.
• Explain the roles of Real-Time Workshop
• Explain the benefits of automatic code generation
• Provide an overview of Real-Time Workshop code architecture
• Explain the constraints of Real-Time Workshop

Nonreal-Time Applications with Simulation Targets
Objective: This section introduces the use of Real-Time Workshop to generate rapid
simulation applications.
• Provide an overview to the S-function target
• Generate an S-function from a subsystem
• Generate an S-function from a model
• Provide an overview to the rapid simulation target
• Generate a rapid simulation
• Run a rapid simulation

Real-Time Execution Considerations
Objective: This section discusses the concerns related to real-time application development.
• Compare real-time and nonreal-time executions
• Explain the constraints of a real-time schedule
• Discuss considerations of a multirate scheduler

Rapid Prototyping with Real-Time Windows Target
Objective: This section introduces the use of the Real-Time Windows Target to generate
real-time applications.
• Provide an overview to the Real-Time Windows Target
• Install the Real-Time Windows Target kernel
• Generate a Real-Time Windows Target application
• Run a Real-Time Windows Target application
• Monitor signals in real time
• Tune parameters in real time

Real-Time Applications with xPC Target
Objective: This section introduces the use of xPC Target to generate real-time applications.
• Provide an overview to the xPC Target
• Boot the xPC Target kernel
• Generate an xPC Target application
• Run an xPC Target application
• Monitor signals in real time
• Tune parameters in real time

ANSI/ISO C Code Generation with Generic Targets
Objective: This section introduces the use of Real-Time Workshop and Real-Time
Workshop Embedded Coder to generate code for algorithm export.
• Provide an overview to the Generic Real-Time target
• Generate non-embeddable code from a model
• Discuss the calling interface to the non-embeddable code
• Provide an overview to the Embedded Real-Time target
• Generate embedded code from a model
• Discuss the calling interface to the embedded code

Software Deployment with Embedded Target for Motorola MPC555
Objective: This section introduces the use of the Embedded Target for Motorola
MPC555 to validate and deploy software implementations.
• Provide an overview to the Embedded Target for Motorola MPC555
• Set up the development environment
• Run a software-in-the-loop simulation
• Run a processor-in-the-loop cosimulation
• Run a real-time application on MPC555

Conclusion
Objective: This section summarizes all Real-Time Workshop related products by
category and provides information to additional resources.

Appendix A: Glossary
Objective: This appendix explains the various types of Real-Time Workshop applications.

Appendix B: Dissecting Multitasking Rate Transition
Objective: This section explains how Simulink rate transition handles data transfer
between two blocks that are sampled at different rates to prevent corruptions.

Appendix C: Exercises
Objective: This section provides exercises to reinforce the covered topics and to explore
new features