Products & Services Solutions Academia Support User Community Company

Learn more about Real-Time Workshop   

Finding Information On How To Meet Your Goals

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

GoalsRelated Product InformationDemos

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

Tracing Generated Code

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

rtwdemo_f14
rtwdemo_fuelsys

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

rtwdemo_rsim_param_survey_
script
rtwdemo_rsim_batch_script
rtwdemo_rsim_param_tuning

Distribute simulation runs across multiple computers

SystemTest™

SystemTest documentation

MATLAB® Distributed Computing Server™ documentation

Parallel Computing Toolbox™ documentation

 

Developing a Model Executable Specification

GoalsRelated Product InformationDemos

Produce design artifacts for algorithms that you develop in MATLAB® code for reviews and archiving

MATLAB® Report Generator™

MATLAB Report Generator documentation

 

Produce design artifacts from Simulink and Stateflow® models for reviews and archiving

Simulink Report Generator

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
rtwdemo_atomic
rtwdemo_ssreuse
rtwdemo_filepart
rtwdemo_export_functions

Specify components and boundaries for design and incremental code generation

in the Real-Time Workshop documentationrtwdemo_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

rtwdemo_comments
rtwdemo_symbols

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

Profiling Code Performance

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

Interfacing With a Real-Time Operating System

rtwdemo_counter
rtwdemo_async
Generate code for rapid prototyping in hard real time, using PCs

xPC Target™

xPC Target documentation

help xpcdemos
Generate code for rapid prototyping in soft real time, using PCs

Real-Time Windows Target™

Real-Time Windows Target documentation

rtvdp (and others)

Developing a Detailed Software Design

GoalsRelated Product InformationDemos
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

Interfacing With a Real-Time Operating System

rtwdemo_counter
rtwdemo_async
rtwdemo_osek
rtwdemo_autosar
Specify target hardware settingsSelecting and Configuring a Target rtwdemo_targetsettings
Design model variantsUsing Model Reference Variants 
Specify fixed-point algorithms in Simulink, Stateflow, and Embedded MATLAB™

Simulink® Fixed Point™

Data Types and Scaling and Code Generation in the Simulink Fixed Point documentation

rtwdemo_fixpt1
rtwdemo_fuelsys_fixpt
Convert a floating-point model or subsystem to a fixed-point representation

Simulink Fixed Point

Fixed-Point Advisor in the Simulink Fixed Point documentation

fxpdemo_fpa
Iterate to obtain an optimal fixed-point design, using autoscaling

Simulink Fixed Point

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 documentationrtwdemo_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 guidelinesConsulting 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

Simulink® Design Verifier™

Simulink Design Verifier documentation

sldvdemo_cruise_control
sldvdemo_cruise_control_
verification
Generate reports of models and software designs

MATLAB Report Generator

MATLAB Report Generator documentation

Simulink Report Generator

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

Simulink Report Generator

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™

Embedded IDE Link documentation

Target Support Package™

Target Support Package documentation

 
Generate source code for your models, integrate the code into your production build environment, and run it on existing hardware

About System Simulation

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

Interfacing With a Real-Time Operating System

rtwdemo_counter
rtwdemo_fcnprotoctrl
rtwdemo_async
rtwdemo_osek
rtwdemo_autosar
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

Embedded IDE Link documentation

Target Support Package

Target Support Package documentation

See help for link and target support package products

Generating the Application Code

GoalsRelated Product InformationDemos
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)

Optimizing Generated Code

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 Processingrtwdemo_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

rtwdemo_comments
rtwdemo_hyperlinks
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

Documentation for PolySpace® Products

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

Writing Wrapper S-Functions

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

GoalsRelated Product InformationDemos
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

rtwdemo_capi
rtwdemo_asap2
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 processBuilding Executablesrtwdemo_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 environmentVerifying 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

Interfacing With a Real-Time Operating System

rtwdemo_async
rtwdemo_osek
rtwdemo_autosar
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 Processingrtwdemo_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

rtwdemo_capi
rtwdemo_asap2
Customize and control the build processBuilding Executablesrtwdemo_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

Scheduling Considerations

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 documentationrtwdemo_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

rtwdemo_pil
rtwdemo_custom_pil
rtwdemo_rtiostream
See the list of supported hardware for the Real-Time Workshop Embedded Coder product on the MathWorks Web site, and then find a demo for the related product of interest

Integrating, Verifying, and Calibrating System Components

GoalsRelated Product InformationDemos

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

Interfacing With a Real-Time Operating System

rtwdemo_f14
Conduct hard real-time HIL testing using PCs

xPC Target

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 Calibrationrtwdemo_asap2
Generate C API data interface filesInteracting with Target Application Signals and Parameters Using the C APIrtwdemo_capi


[a] MISRA® and MISRA C are registered trademarks of MISRA Ltd., held on behalf of the MISRA Consortium.

  


Related Products & Applications

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