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

 

Real-Time Workshop 7.4

Introduction to Real-Time Workshop

Learn how to quickly generate efficient code for rapid prototyping or hardware-in-the-loop (HIL) testing. Work with Simulink® software, Stateflow® software, and Embedded MATLAB™ functionality.


 

Contents

Demo Overview

The video shows how to create an executable specification using:
  • Simulink
  • Stateflow
  • Embedded MATLAB functionality
Apply designs for:
  • Real-time simulation
  • Rapid-prototyping
  • Hardware-in-the-loop testing
Generate code in:
  • C
  • C++
Target hardware for:
  • Hosts
  • Real-time simulators
  • In-vehicle prototyping

Creating the Executable Specification

Here we have a top-level model representing an algorithm modeled in Simulink software. You can design your system using Simulink blocks, Stateflow charts, and Embedded MATLAB functions. You can execute your design and see the results of the simulation all from within the same environment.


See how we explore the model.

Viewing the Signals and Data

As you work on your design, there are a variety of tools available to view and interact with your executable specification, including using scopes, setting breakpoints, and viewing animations.

See how you can view the data.

Configuring for Different Targets

Once the design is complete, you can configure Real-Time Workshop® code generation software to generate code for a variety of targets. These code generation options and parameters are consolidated in Simulink® Model Explorer.


See how you configure for different targets.

Configuring for Standalone Executables and Rapid Prototyping

You can generate code for a particular environment or purpose. Some built-in targeting options are provided using system target files.

Using the Rapid Simulation Target, you can create standalone executables suited for Monte Carlo simulations. If you combine this with Parallel Computing Toolbox™ software, you can execute numerous simulations of a model faster on a computer cluster. You can also generate code for xPC Target™ to run rapid prototyping and hardware-in-the-loop testing.


See how you configure for standalone executables and rapid prototyping.

Configuring Code Generation Options

For this demo, we will use the default general purpose generic real-time (GRT) target that generates ANSI-C code for real-time simulators. Several code generation options are available with the GRT target. However, many more exist when you use Real-Time Workshop® Embedded Coder™ code generation software.

See how you can configure code generation options.

Generating and Viewing the code

After you generate code, you will see the generated code report. A model C file is generated with the associated header files. This code contains infrastructure ideal for rapid-prototyping, real-time simulation, and hardware-in-the-loop applications where the visibility of all intermediate signals and parameters is vital.

If you are interested in more streamlined architectures and code for production code deployment, please watch one of our recordings on Real-Time Workshop Embedded Coder.


See how you can generate and view the code.

Additional Resources


Technical Evaluation Kit

Related Video Demos

Related Demos

Products Used in this Demo

  • MATLAB®
  • Simulink®
  • Stateflow®
  • Real-Time Workshop®
  • Stateflow® Coder™


Contact sales
Free technical kit
Trial software
E-mail this page

Get Pricing and
Licensing Options