Real-Time Workshop Embedded Coder | ![]() ![]() |
External Mode
Selecting the External mode option turns on generation of code to support external mode communication between host (Simulink) and target systems. The Real-Time Workshop Embedded Coder supports all features of Simulink external mode, as described in the External Mode section of the Real-Time Workshop documentation.
If you are unfamiliar with external mode, we recommend that you start with the external mode exercise in the Quick Start Tutorials section of the Real-Time Workshop documentation.
Like the GRT, GRT malloc, and Tornado targets, the Real-Time Workshop Embedded Coder supports host/target communication via TCP/IP, using the standard ext_comm
MEX-file. If you need to support external mode on a custom target using your own low-level communications layer, see the Targeting Real-Time Systems section of the Real-Time Workshop documentation for detailed information on the external mode API.
Parameter Structure
The Parameter structure menu lets you control how parameter data is generated for reusable subsystems. (If you are not familiar with reusable subsystem code generation, see "Nonvirtual Subsystem Code Generation Options" in the Real-Time Workshop documentation for further information.)
The Parameter structure menu is enabled when the Inline parameters option is on. The menu lets you select the following options:
Hierarchical
: This option is the default. When the Hierarchical
option is selected, the Real-Time Workshop Embedded Coder generates a separate header file, defining an independent parameter structure, for each subsystem that meets the following conditions:
Hierarchical
option is selected, each generated subsystem parameter structure is referenced as a substructure of the root-level parameter data structure, which is therefore called a hierarchical data structure.
Non-hierarchical
: When this option is selected, the Real-Time Workshop Embedded Coder generates a single parameter data structure. This is a flat data structure; subsystem parameters are defined as fields within this structure.
![]() | Other Code Generation Options | Generate An Example Main Program | ![]() |