Pass root-level I/O as
Specify how generated code passes root-level input and output to reusable execution entry-point function
Model Configuration Pane: Code Generation / Interface
Description
The Pass root-level I/O as parameter controls how root-level model
input and output data is passed to a reusable
,
model_step, or
model_initialize entry-point
function.model_terminate
Dependency
To enable this parameter, set the Code interface packaging parameter to Reusable function.
Settings
Individual arguments (default) | Structure reference | Part of model data structureIndividual argumentsPasses each root-level model input and output value to the entry-point function as a separate argument.
Structure referencePacks root-level model input into a
struct, packs root-level model output into anotherstruct, and passes the structures to the entry-point function as arguments.Part of model data structurePackages root-level model input and output into the real-time model data structure
rtModel.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
Parameter: RootIOFormat |
| Type: character vector |
Value: 'Individual arguments' | 'Structure reference' | 'Part of model data structure' |
Default: 'Individual arguments' |
Version History
Introduced before R2006a