Support root-level matrix I/O using one-dimensional arrays
Description
Allow root-level matrix I/O for column-major array layout
Category: Code Generation > AUTOSAR Code Generation Options
Settings
Default: Off
On
For AUTOSAR component models that use column-major array layout, software supports matrix I/O at the root level by generating code that implements matrices as one-dimensional arrays.
Off
For column-major array layout, software does not allow matrix I/O at the root level. If you try to build a model that has matrix I/O at the root level, the software produces an error.
Tips
Set the same value for top and referenced models.
For an AUTOSAR component model with multidimensional arrays, if you set the model configuration parameter Array layout to
Row-major
, you can preserve dimensions of multidimensional arrays in the generated C code. Preserving array dimensions in the generated code can enhance code integration.When Array layout is set to
Row-major
, Support root-level matrix I/O using one-dimensional arrays does not apply.
Command-Line Information
Parameter:
AutosarMatrixIOAsArray |
Type: character vector |
Value:
'on' | 'off' |
Default:
'off' |
Related Topics
- Model Configuration Parameters: Code Generation AUTOSAR
- Root-Level Matrix I/O (AUTOSAR Blockset)