| Real-Time Workshop® | ![]() |
The Real-Time Workshop software generates two styles of code. One code style is suitable for rapid prototyping (and simulation by using code generation). The other style is suitable for embedded applications. This chapter discusses the program architecture, that is, the structure of code generated by the Real-Time Workshop code generator, associated with these two styles of code. The next table classifies the targets shipped with the product. For related details about code style and target characteristics, see Choosing a Code Format for Your Application.
Code Styles Listed by Target
Target | Code Style (Using C or C++ Unless Noted) |
|---|---|
Real-Time Workshop Embedded Coder embedded real-time (ERT) target | Embedded — Useful as a starting point when using generated C/C++ code in an embedded application (often referred to as a production code target). |
Real-Time Workshop Generic real-time (GRT) target | Rapid prototyping — Use as a starting point for creating a rapid prototyping target that does not use real-time operating system tasking primitives, and for verifying the generated code on your workstation. Uses components of ERT, with a different calling interface. |
Real-time malloc target | Rapid prototyping — Similar to the generic real-time (GRT) target except that this target allocates all model working memory dynamically rather than statically declaring it in advance. |
Rapid simulation target (RSim) | Rapid prototyping — Non-real-time simulation of your model on your workstation. Useful as a high-speed or batch simulation tool. |
S-function target | Rapid prototyping — Creates a C MEX S-function for simulation of your model within another Simulink model; useful for intellectual property protection. |
Tornado (VxWorks) real-time target[a] | Rapid prototyping — Runs model in real time using the VxWorks real-time operating system tasking primitives. Also useful as a starting point for targeting a real-time operating system. |
Real-Time Windows Target | Rapid prototyping — Runs model in real time at interrupt level while your PC is running a Microsoft Windows environment in the background. |
xPC Target | Rapid prototyping — Runs model in real time on target PC running the xPC Target kernel. |
[a] Tornado and VxWorks are registered trademarks of Wind River Systems, Inc. | |
Third-party vendors supply additional targets for the Real-Time Workshop product. Generally, these can be classified as rapid prototyping targets. For more information about third-party products, see The MathWorks Connections Program Web page: http://www.mathworks.com/products/connections.
This chapter is divided into three sections. The first section discusses model execution, the second section discusses the rapid prototyping style of code, and the third section discusses the embedded style of code.
[a] Tornado and VxWorks are registered trademarks of Wind River Systems, Inc.
![]() | Program Architecture | Model Execution | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |