| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Real-Time Workshop |
| Contents | Index |
| Learn more about Real-Time Workshop |
The following tables list goals that you might have, as you apply Real-Time Workshop technology, and where to find guidance on how to meet those goals. Each table focuses on goals that pertain to a step of the V-model for system development.
Documenting and Validating Requirements
| Goals | Related Product Information | Demos | |||
|---|---|---|---|---|---|
Capture requirements in a document, spreadsheet, data base, or requirements management tool | Simulink® Report Generator™ documentation Third-party vendor tools such as Microsoft® Word, Microsoft® Excel®, raw HTML, or IBM®Rational® DOORS® | ||||
Associate requirements documents with objects in concept models Generate a report on requirements associated with a model | Simulink® Verification and Validation™ Managing Model Requirements in the Simulink Verification and Validation documentation Bidirectional tracing in Microsoft Word, Microsoft Excel, HTML, and Telelogic® DOORS | slvnvdemo_fuelsys_docreq | |||
| Include requirements tags in generated code | Simulink Verification and Validation Including Requirements Information with Generated Code in the Simulink Verification and Validation documentation | rtwdemo_requirements | |||
| Trace model blocks and subsystems to generated code and vice versa | Real-Time Workshop Embedded Coder Verifying Generated Code in the Real-Time Workshop Embedded Coder documentation | rtwdemo_hyperlinks | |||
| Verify, refine, and test concept model in non-real time on a host system | Developing Models for Code Generation Developing Models for Code Generation in the Real-Time Workshop Embedded Coder documentation Running Simulations and Accelerating Models in the Simulink® documentation |
| |||
Run standalone rapid simulations Run batch or Monte-Carlo simulations Repeat simulations with varying data sets, interactively or programmatically with scripts, without rebuilding the model Tune parameters and monitor signals interactively Simulate models for hybrid dynamic systems that include components and an environment or plant that requires variable-step solvers and zero-crossing detection | Testing and Refining Concept Models With Standalone Rapid Simulations Communicating With Code Executing on a Target System Using Simulink External Mode |
| |||
Distribute simulation runs across multiple computers | SystemTest documentation MATLAB® Distributed Computing Server™ documentation Parallel Computing Toolbox™ documentation |
Developing a Model Executable Specification
| Goals | Related Product Information | Demos | ||||
|---|---|---|---|---|---|---|
Produce design artifacts for algorithms that you develop in MATLAB® code for reviews and archiving | MATLAB Report Generator documentation | |||||
Produce design artifacts from Simulink and Stateflow® models for reviews and archiving | Simulink Report Generator System Design Description Report | rtwdemo_codegenrpt | ||||
Add one or more components to another environment for system simulation Refine a component model Refine an integrated system model Verify functionality of a model in non-real time Test a concept model | Testing and Refining a Model With Rapid Prototyping | |||||
Schedule generated code | Scheduling Considerations in the Real-Time Workshop documentation Handling Asynchronous Events in the Real-Time Workshop documentation | rtwdemos, select Multirate Support folder | ||||
Specify function boundaries of systems | Creating Subsystems in the Real-Time Workshop documentation |
| ||||
Specify components and boundaries for design and incremental code generation | in the Real-Time Workshop documentation | rtwdemo_mdlref_top | ||||
Specify function interfaces so that external software can compile, build, and invoke the generated code | Real-Time Workshop Embedded Coder Controlling Generation of Function Prototypes and Controlling Generation of Encapsulated C++ Model Interfaces in the Real-Time Workshop Embedded Coder documentation | rtwdemo_fcnprotoctrl | ||||
Manage data packaging in generated code for integrating and packaging data | Real-Time Workshop Embedded Coder Defining Data Representation and Storage for Code Generation in the Real-Time Workshop Embedded Coder documentation Relocating Code to Another Development Environment (PacknGo) | rtwdemos, select Data Packaging folder | ||||
Generate and control the format of comments and identifiers in generated code | Real-Time Workshop Embedded Coder Customizing Comments in Generated Code and Configuring Symbols in the Real-Time Workshop Embedded Coder documentation |
| ||||
Create a zip file that contains generated code files, static files, and dependent data to build generated code in an environment other than your host computer | Relocating Code to Another Development Environment (PacknGo) | rtwdemo_buildinfo | ||||
Export models for validation in a system simulator using shared libraries | Real-Time Workshop Embedded Coder Creating and Using Host-Based Shared Libraries in the Real-Time Workshop Embedded Coder documentation | rtwdemo_shrlib | ||||
Refine component and environment model designs by rapidly iterating between algorithm design and prototyping Verify whether a component can adequately control a physical system in non-real time Evaluate system performance before laying out hardware, coding production software, or committing to a fixed design Test hardware | Rapid Prototyping a Real-Time System Developing Models for Code Generation Developing Models for Code Generation in the Real-Time Workshop Embedded Coder documentation | rtwdemo_profile | ||||
Generate code for rapid prototyping | Selecting and Configuring a Target Real-Time Workshop Embedded Coder Developing Models for Code Generation in the Real-Time Workshop Embedded Coder documentation |
| ||||
| Generate code for rapid prototyping in hard real time, using PCs | xPC Target documentation | help xpcdemos | ||||
| Generate code for rapid prototyping in soft real time, using PCs | Real-Time Windows Target documentation | rtvdp (and others) |
Developing a Detailed Software Design
| Goals | Related Product Information | Demos | |||||
|---|---|---|---|---|---|---|---|
| Refine a model design for representation and storage of data in generated code | Defining Data Representation and Storage for Code Generation Relocating Code to Another Development Environment (PacknGo) | ||||||
Select a deployment code format | Selecting and Configuring a Target Real-Time Workshop Embedded Coder Developing Models for Code Generation and Generating Code That Complies with AUTOSAR Standards in the Real-Time Workshop Embedded Coder documentation |
| |||||
| Specify target hardware settings | Selecting and Configuring a Target | rtwdemo_targetsettings | |||||
| Design model variants | Using Model Reference Variants | ||||||
| Specify fixed-point algorithms in Simulink, Stateflow, and Embedded MATLAB™ | Data Types and Scaling and Code Generation in the Simulink Fixed Point documentation |
| |||||
| Convert a floating-point model or subsystem to a fixed-point representation | Fixed-Point Advisor in the Simulink Fixed Point documentation | fxpdemo_fpa | |||||
| Iterate to obtain an optimal fixed-point design, using autoscaling | Automatic Scaling in the Simulink Fixed Point documentation | fxpdemo_feedback | |||||
| Create or rename data types specifically for your application | Real-Time Workshop Embedded Coder Code Generation with User-Defined Data Types in the Real-Time Workshop Embedded Coder documentation | rtwdemo_udt | |||||
| Control the format of identifiers in generated code | Real-Time Workshop Embedded Coder Configuring Symbols in the Real-Time Workshop Embedded Coder documentation | rtwdemo_symbols | |||||
| Specify how signals, tunable parameters, block states, and data objects are declared, stored, and represented in generated code | Real-Time Workshop Embedded Coder Creating and Using Custom Storage Classes in the Real-Time Workshop Embedded Coder documentation | rtwdemo_cscpredef | |||||
| Create a data dictionary for a model | Real-Time Workshop Embedded Coder Managing Data Definitions and Declarations With the Data Dictionary in the Real-Time Workshop Embedded Coder documentation | rtwdemo_advsc | |||||
| Relocate data segments for generated functions and data using #pragmas for calibration or safe data access | Real-Time Workshop Embedded Coder Inserting Comments and Pragmas in Generated Code in the Real-Time Workshop Embedded Coder documentation | rtwdemo_memsec | |||||
| Assess and adjust model configuration parameters based on the application and an expected run-time environment | Preparing Models for Code Generation Preparing Models for Code Generation in the Real-Time Workshop Embedded Coder documentation | rtwdemo_f14 | |||||
| Check a model against basic modeling guidelines | Consulting the Model Advisor in the Simulink documentation | rtwdemo_advisor1 | |||||
| Add custom checks to the Simulink Model Advisor | Simulink Verification and Validation Customizing the Model Advisor in the Simulink Verification and Validation documentation | slvnvdemo_mdladv | |||||
| Check a model against custom standards or guidelines | Consulting the Model Advisor in the Simulink documentation | ||||||
| Check a model against industry standards and guidelines (MathWorks™ Automotive Advisory Board (MAAB), IEC 61508, and DO-178B) | Real-Time Workshop Embedded Coder Developing Models and Code That Comply with Industry Standards and Guidelines in the Real-Time Workshop Embedded Coder documentation Simulink Verification and Validation Model Advisor Checks in the Simulink Verification and Validation documentation | rtwdemo_iec61508 | |||||
| Obtain model coverage for structural coverage analysis such as MC/DC | Simulink Verification and Validation Using Model Coverage in the Simulink Verification and Validation documentation | cvbasic_operation | |||||
| Prove properties and generate test vectors for models |
| ||||||
| Generate reports of models and software designs | MATLAB Report Generator documentation Simulink Report Generator System Design Description Report documentation | rtwdemos_codegenrpt | |||||
| Conduct reviews of your model and software designs with coworkers, customers, and suppliers who do not have Simulink available | Exporting Simulink Models to Web Views and Comparing XML Files Exported from Simulink Modelsin the Simulink Report Generator documentation | slxml_sfcar | |||||
Refine the concept model of your component or system Test and validate the model functionality in real time Test the hardware Obtain real-time profiles and code metrics for analysis and sizing based on your embedded processor Assess the feasibility of the algorithm based on integration with the environment or plant hardware | Rapid Prototyping On a Target System Embedded IDE Link documentation Target Support Package documentation | ||||||
| Generate source code for your models, integrate the code into your production build environment, and run it on existing hardware | Selecting and Configuring a Target Real-Time Workshop Embedded Coder Developing Models for Code Generation and Generating Code That Complies with AUTOSAR Standards in the Real-Time Workshop Embedded Coder documentation |
| |||||
| Integrate existing externally written C or C++ code with your model for simulation and code generation | Integrating Existing C Functions into Simulink Models with the Legacy Code Tool in the Simulink documentation Integrating External Code With Generated C and C++ Code Integrating External Code and Generated C and C++ Code in the Real-Time Workshop Embedded Coder documentation | rtwdemos, select Custom Code folder | |||||
| Generate code for on-target rapid prototyping on specific embedded microprocessors and IDEs | Embedded IDE Link documentation Target Support Package documentation | See help for link and target support package products |
Generating the Application Code
| Goals | Related Product Information | Demos | ||
|---|---|---|---|---|
| Optimize generated ANSI® C code for production (for example, disable floating-point code, remove termination and error handling code, and combine code entry points into single functions) | Real-Time Workshop Embedded Coder Preparing Models for Code Generation in the Real-Time Workshop Embedded Coder documentation | rtwdemos, select Optimization folder | ||
| Optimize code for a specific run-time environment, using specialized function libraries | Real-Time Workshop Embedded Coder Replacing Math Functions and Operators Using Target Function Libraries in the Real-Time Workshop Embedded Coder documentation | rtwdemo_tfl_script | ||
| Control the format and style of generated code | Real-Time Workshop Embedded Coder Controlling Code Style in the Real-Time Workshop Embedded Coder documentation | rtwdemo_parentheses | ||
| Control the comments inserted into generated code | Real-Time Workshop Embedded Coder Customizing Comments in Generated Code in the Real-Time Workshop Embedded Coder | rtwdemo_comments | ||
| Enter special instructions or tags for postprocessing by third-party tools or processes | Customizing Post Code Generation Build Processing | rtwdemo_buildinfo | ||
| Include requirements tags in generated code | Simulink Verification and Validation Including Requirements Information with Generated Code in the Simulink Verification and Validation documentation | rtwdemo_requirements | ||
| Trace model blocks and subsystems to generated code and vice versa | Real-Time Workshop Embedded Coder Generating Reports for Code Reviews and Traceability Analysis, Tracing Code To Model Objects Using Hyperlinks,Tracing Blocks to Generated Code, and Developing Models and Code That Comply with Industry Standards and Guidelines in the Real-Time Workshop Embedded Coder documentation |
| ||
| Integrate existing externally written code with code generated for a model | Integrating Existing C Functions into Simulink Models with the Legacy Code Tool in the Simulink documentation Integrating External Code With Generated C and C++ Code Integrating External Code and Generated C and C++ Code in the Real-Time Workshop Embedded Coder documentation | rtwdemos, select Custom Code folder | ||
| Verify generated code for MISRA C®[a] and other run-time violations | Real-Time Workshop Embedded Coder Developing Models and Code That Comply with MISRA C Guidelines in the Real-Time Workshop Embedded Coder documentation | rtwdemo_polyspace | ||
Protect the intellectual property of component model design and generated code Generate a binary file (shared library) | Protecting Intellectual Property in Shared Model Components | |||
| Generate a MEX-file S-function for a model or subsystem so that it can be shared with a third-party vendor | Creating Component Object Libraries and Enhancing Simulation Performance | |||
| Generate a shared library for a model or subsystem so that it can be shared with a third-party vendor | Creating and Using Host-Based Shared Libraries in the Real-Time Workshop Embedded Coder documentation | |||
| Test generated production code with an environment or plant model to verify a successful conversion of the model to code | Verifying Generated Source Code With Software-In-the-Loop Simulation Verifying Generated Source Code With Software-In-the-Loop Simulation in the Real-Time Workshop Embedded Coder documentation | rtwdemo_sil_pil | ||
| Write or generate an S-function wrapper for calling your generated source code from a model running in Simulink | Real-Time Workshop Embedded Coder Generating S-Function Wrappers in the Real-Time Workshop Embedded Coder documentation | rtwdemo_sil_pil | ||
| Set up and run SIL tests on your host computer | Verifying Generated Source Code With Software-In-the-Loop Simulation Real-Time Workshop Embedded Coder Verifying Generated Source Code With Software-In-the-Loop Simulation in the Real-Time Workshop Embedded Coder documentation | rtwdemo_sil_pil | ||
[a] MISRA® and MISRA C are registered trademarks of MISRA Ltd., held on behalf of the MISRA Consortium. | ||||
Integrating and Verifying Software
| Goals | Related Product Information | Demos | ||||
|---|---|---|---|---|---|---|
| Integrate existing externally written C or C++ code with a model for simulation and code generation | Integrating Existing C Functions into Simulink Models with the Legacy Code Tool in the Simulink documentation Integrating External Code With Generated C and C++ Code Integrating External Code and Generated C and C++ Code in the Real-Time Workshop Embedded Coder documentation | rtwdemos, select Custom Code folder | ||||
| Connect to data interfaces for generated C code data structures | Setting Up Generated Code To Interface With Components in the Run-Time Environment Setting Up Generated Code To Interface With Components in the Run-Time Environment in the Real-Time Workshop Embedded Coder documentation |
| ||||
| Control the generation of code interfaces so that external software can compile, build, and invoke the generated code | Real-Time Workshop Embedded Coder Controlling Generation of Function Prototypes in the Real-Time Workshop Embedded Coder documentation | rtwdemo_fcnprotoctrl | ||||
| Export virtual and function-call subsystems | Real-Time Workshop Embedded Coder Exporting Function-Call Subsystems in the Real-Time Workshop Embedded Coder documentation | rtwdemo_export_functions | ||||
| Include target-specific code | Real-Time Workshop Embedded Coder Replacing Math Functions and Operators Using Target Function Libraries in the Real-Time Workshop Embedded Coder documentation | rtwdemo_tfl_script | ||||
| Customize and control the build process | Building Executables | rtwdemo_buildinfo | ||||
Create a zip file that contains generated code files, static files, and dependent data to build the generated code in an environment other than your host computer | Relocating Code to Another Development Environment (PacknGo) | rtwdemo_buildinfo | ||||
| Integrate all software components as a complete system for testing in the target environment | Verifying a Component by Building a Complete Real-Time Target Environment in the Real-Time Workshop Embedded Coder documentation | |||||
| Generate source code for integration with specific production environments | Selecting and Configuring a Target Real-Time Workshop Embedded Coder Developing Models for Code Generation and Generating Code That Complies with AUTOSAR Standards in the Real-Time Workshop Embedded Coder documentation |
| ||||
| Integrate code for a specific run-time environment, using specialized function libraries | Real-Time Workshop Embedded Coder Replacing Math Functions and Operators Using Target Function Libraries in the Real-Time Workshop Embedded Coder documentation | rtwdemo_tfl_script | ||||
| Enter special instructions or tags for postprocessing by third-party tools or processes | Customizing Post Code Generation Build Processing | rtwdemo_buildinfo | ||||
| Integrate existing externally written code with code generated for a model | Integrating Existing C Functions into Simulink Models with the Legacy Code Tool in the Simulink documentation Integrating External Code With Generated C and C++ Code Integrating External Code and Generated C and C++ Code in the Real-Time Workshop Embedded Coder documentation | rtwdemos, select Custom Code folder | ||||
| Connect to data interfaces for the generated C code data structures | Setting Up Generated Code To Interface With Components in the Run-Time Environment Setting Up Generated Code To Interface With Components in the Run-Time Environment in the Real-Time Workshop Embedded Coder documentation |
| ||||
| Customize and control the build process | Building Executables | rtwdemo_buildinfo | ||||
Create a zip file that contains generated code files, static files, and dependent data needed to build the generated code in an environment other than your host computer | Relocating Code to Another Development Environment (PacknGo) | rtwdemo_buildinfo | ||||
Schedule the generated code | rtwdemos, select Multirate Support folder | |||||
Verify object code files in a target environment | Verifying Compiled Object Code with Processor-in-the-Loop Simulation in the Real-Time Workshop Embedded Coder documentation | rtwdemo_pil | ||||
| Set up and run PIL tests on your target system | Verifying Compiled Object Code with Processor-in-the-Loop Simulation in the Real-Time Workshop Embedded Coder documentation Embedded IDE Link documentation |
|
Integrating, Verifying, and Calibrating System Components
| Goals | Related Product Information | Demos |
|---|---|---|
Integrate the software and its microprocessor with the hardware environment for the final embedded system product Add the complexity of the environment (or plant) under control to the test platform Test and verify the embedded system or control unit by using a real-time target environment | Verifying a System With Hardware-In-the-Loop Simulation | |
| Generate source code for HIL testing | Selecting and Configuring a Target Real-Time Workshop Embedded Coder Developing Models for Code Generation and Generating Code That Complies with AUTOSAR Standards in the Real-Time Workshop Embedded Coder documentation | rtwdemo_f14 |
| Conduct hard real-time HIL testing using PCs | xPC Target documentation | help xpcdemos |
Ensure ECU is properly tuned for its intended use | Setting Up Generated Code To Interface With Components in the Run-Time Environment Setting Up Generated Code To Interface With Components in the Run-Time Environment in the Real-Time Workshop Embedded Coder documentation | |
| Generate ASAP2 data files | Generating Model Information for Host-Based ASAP2 Data Measurement and Calibration | rtwdemo_asap2 |
| Generate C API data interface files | Interacting with Target Application Signals and Parameters Using the C API | rtwdemo_capi |
[a] MISRA® and MISRA C are registered trademarks of MISRA Ltd., held on behalf of the MISRA Consortium.
![]() | Applications of Real-Time Workshop Technology | Developing Models for Code Generation | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |