Pass root-level I/O as
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
entry-point function.model
_step
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 entry-point function
as a separate argument.model
_stepStructure reference
Packs root-level model input into a
struct
, packs root-level model output into anotherstruct
, and passes the structures to entry-point function
as arguments.model
_stepPart 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