Rate Transition block code - Format for rate transition block code and data - MATLAB (original) (raw)

Main Content

Format for rate transition block code and data

Model Configuration Pane: Code Generation / Code Placement

Description

Specify the format for Rate Transition block code and data. Inline the code with the model code or create separate functions that the model code calls with state data in a dedicated structure.

Dependencies

Settings

Inline (default) | Function

Default: Inline

Inline

Inline Rate Transition block code with model code. Declare Rate Transition block state data in global block state structure.

Function

Separate Rate Transition block code and data from the model code and data. The generated code contains separate get and set functions that the _model__step functions call and a dedicated structure for state data. The generated code also contains separate start and initialize functions that the _model__initialize function calls.

Application Setting
Debugging Function
Traceability Function
Efficiency Inline
Safety precaution No impact

Note

Programmatic Use

| Parameter: RateTransitionBlockCode | | | -------------------------------------- | | | Value: 'Inline' | 'Function' | | | Default: 'Inline' | |

Version History

Introduced in R2018a

See Also