Pass root-level I/O as - Specify how generated code passes root-level input and output to reusable execution
entry-point function - MATLAB ([original](https://in.mathworks.com/help/ecoder/ref/passrootlevelioas.html)) ([raw](?raw))
Main Content
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
,_`model`__initialize
, or_`model`__terminate
entry-point function.
Dependency
To enable this parameter, set the Code interface packaging parameter to Reusable function
.
Settings
Individual arguments
(default) | Structure reference
| Part of model data structure
Individual arguments
Passes each root-level model input and output value to the entry-point function as a separate argument.
Structure reference
Packs root-level model input into a struct
, packs root-level model output into another struct
, and passes the structures to the entry-point function as arguments.
Part of model data structure
Packages 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