Main Content

Remove error status field in real-time model data structure

Description

Specify whether to log or monitor error status.

Category: Code Generation > Interface

Settings

Default: off

On

Omits the error status field from the generated real-time model data structure rtModel. This option reduces memory usage.

Be aware that selecting this option can cause the code generator to omit the rtModel data structure from generated code.

Off

Includes an error status field in the generated real-time model data structure rtModel. You can use available macros to monitor the field for error message data or set it with error message data.

Dependencies

  • This parameter appears only for ERT-based targets.

  • This parameter requires an Embedded Coder® license when generating code.

  • Selecting this parameter clears parameter Support: continuous time.

  • If your application contains multiple integrated models, the setting of this parameter must be the same for all of the models to avoid unexpected application behavior. For example, if you select the option for one model but not another, an error status might not get registered by the integrated application.

Command-Line Information

Parameter: SuppressErrorStatus
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingOff
TraceabilityNo impact
EfficiencyOn
Safety precaution

No recommendation

Related Topics