Control how root-level model input and output are passed to the reusable
function.model_step
Category: Code Generation > Interface
Default:
Individual arguments
Individual argumentsPasses each root-level model input and output value to
as a separate
argument.model_step
Structure referencePacks root-level model input into a struct and passes
struct to
as an argument.
Similarly, packs root-level model output into a second model_stepstruct and
passes it to .model_step
Part of model data structurePackages root-level model input and output into the real-time model data structure.
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.
Parameter:
RootIOFormat |
| Type: character vector |
Value:
'Individual arguments' | 'Structure reference' |
'Part of model data structure' |
Default:
'Individual arguments' |
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |