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.
![]() | Generate Reusable Code | Target Floating Point Math Environment | ![]() |