Main Content

Pass root-level I/O as

Description

Control how root-level model input and output are passed to the reusable model_step function.

Category: Code Generation > Interface

Settings

Default: Individual arguments

Individual arguments

Passes each root-level model input and output value to model_step as a separate argument.

Structure reference

Packs root-level model input into a struct and passes struct to model_step as an argument. Similarly, packs root-level model output into a second struct and passes it to model_step.

Part of model data structure

Packages root-level model input and output into the real-time model data structure.

Dependencies

  • This parameter only appears for ERT-based targets with parameter Code interface packaging set to Reusable function.

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

Command-Line Information

Parameter: RootIOFormat
Type: character vector
Value: 'Individual arguments' | 'Structure reference' | 'Part of model data structure'
Default: 'Individual arguments'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Related Topics