Real-Time Workshop User's Guide |
 |
Nonvirtual Subsystem Code Generation
The Real-Time Workshop allows you to control generation of code at the subsystem level, for any nonvirtual subsystem. The categories of nonvirtual subsystems are:
- Conditionally executed subsystems: execution depends upon a control signal. These include triggered subsystems, enabled subsystems, subsystems that are both triggered and enabled, and function call subsystems. See Using Simulink for information on conditionally executed subsystems.
- Atomic subsystems: Any virtual subsystem can be declared atomic (and therefore nonvirtual) via the Treat as atomic unit option in the Block Parameters dialog.
See Using Simulink for further information on virtual subsystems and atomic subsystems.
You can control the code generated from nonvirtual subsystems as follows:
- You can instruct the Real-Time Workshop to generate separate functions, within separate code files, for selected nonvirtual systems. You can control both the names of the functions and of the code files generated from nonvirtual subsystems.
- You can generate inlined code from selected nonvirtual subsystems within your model. When you inline a nonvirtual subsystem, a separate function call is not generated for the subsystem.
| Available Targets | | Nonvirtual Subsystem Code Generation Options |  |