Real-Time Workshop | ![]() ![]() |
A good way to familiarize yourself with Real-Time Workshop is by running a set of demos we provide, and then inspecting code generated from these models. These demos illustrate a number of Real-Time Workshop features, though certainly not all of them. Note that one of the suites demonstrates features of the Real-Time Workshop Embedded Coder, which you will need in order to run those demos. Some of the following demos are set up to build ERT targets, but will default to GRT if Real-Time Workshop Embedded Coder is not installed.
If you are using the MATLAB Help browser to read this, you can launch the demos by clicking on the links in the Command column of Table 1-1.
Alternatively, you can access the demo suite by typing commands from the Demo Command column of the following table, at the MATLAB command prompt, as in this example:
rtwdemos
Demo Command |
Demo Topic |
rtwdemos |
Top-level demo containing buttons to launch specific Real-Time Workshop demos (double-click to activate) |
asyncdemo |
Simulate and generate code for single-, multi-, and asynchronous rate models |
sl_subsys_semantics |
Illustrates differences among types of subsystem, when and how to use them, and common mistakes. |
atomicdemo |
How to preserve the boundary of a virtual subsystem using reusable atomic subsystems |
condinputexec |
Illustrates how conditional input branch execution improves simulation and generated code efficiency |
cbdemo |
Demonstrates Simulink's ability to recognize patterns and eliminate redundant operations |
exprfolding |
Demonstrates how Real-Time Workshop folds (combines) expressions to dramatically improve code efficiency and readability. |
ecifdemo |
Demonstrates how Real-Time Workshop generates production code for Simulink software constructs if , case , for , and while . |
sfexfold |
Demonstrates the seamless integration between Simulink and Stateflow, using a variation of the model for the exprfolding demo. |
hierdemo |
Demonstrates hierarchical name resolution in a masked subsystem |
objectdemo |
Demonstrates how attributes of data objects are available throughout all stages of simulation, report generation, and code generation. |
tunabledemo |
Demonstrates the preservation of tunable expressions in the generated code despite mask transformations |
asap2demo |
Demonstrates ASAP2 (a data definition standard proposed by the Association for Standardization of Automation and Measuring Systems) data export |
rsimtfdemo |
Demonstrates using the Rapid Simulation (rsim) Target to create an accelerated, stand-alone simulation environment. |
signalcapidemo |
Automatically generate a C-API interface for the signals in your model |
ptdemo |
Automatically generate a C-API interface for the parameters in your model |
ecoderdemos |
Tour of the Real-Time Workshop Embedded Coder (menu for demo suite) |
rtwprofiledemo |
Demonstrates the hooks provided by Real-Time Workshop to profile generated code |
multimallocdemo |
Illustrates how to combine code for multiple models |
![]() | Compiler Optimization Settings | Help and Documentation | ![]() |