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
,
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 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 anotherstruct
, 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