Main Content

Generate C API for: states

Generated C API interface code for states in state structure

Model Configuration Pane: Code Generation / Interface

Description

The Generate C API for: states parameter specifies whether, for model states, the code generator produces C API data interface code in a state structure.

Settings

Off (default) | On
On

Enables generation of a C API interface for discrete and continuous states.

Off

Disables generation of a C API interface for states.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact during development
Off for production code generation

Programmatic Use

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

Version History

Introduced before R2006a