| Real-Time Workshop Embedded Coder | ![]() |
Suppress Error Status in Real-Time Model
Data Structure
If you do not need to log or monitor error status in your application, select this option.
By default, the real-time model data structure (rtM) includes an error status field (data type string). This field lets you log and monitor error messages via macros provided for this purpose (see model.h). The error status field is initialized to NULL. If Suppress error status in real-time model data structure is selected, the error status field is not included in rtM. Selecting this option may also cause the real-time model data structure to disappear completely from the generated code.
When generating code for multiple models that will be integrated together, make sure that the Suppress error status in real-time model data structure option is set the same for all of the models. Otherwise, the integrated application may exhibit unexpected behavior. For example, if the option is selected in one model but not in another, the error status may or may not be registered by the integrated application.
Do not select Suppress error status in real-time model data structure if the MAT-file logging option is also selected. The two options are incompatible.
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:
When the 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.
| External Mode | Generate An Example Main Program | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |