Creating a Non-Scalar Interrunnable Variable
To create a non-scalar interrunnable variable (i.e. an interrunnable variable of array, matrix, or record type), proceed as follows:
Do one of the following:
- Use the
Array button to create an array. - Use the
Matrix button to create a matrix. - Include a record manually or via the block library.
Only arrays, matrices, and records can be used as non-scalar interrunnable variables.
Note
You can export models that use non-scalar interrunnable variables only in AMD format V6.4.2 or higher. An AMD format V6.4.1 or older will result in an export error.
If you export models with non-scalar interrunnable variables, keep in mind that you can import and use matrix interrunnable variables, and record interrunnable variables that contain matrices, only in ASCET V6.4.6 and higher.
The new element appears in the Outline tab. The properties editor of the element opens automatically, and you can the element properties immediately.
- Use the
Open the Kind combo box and select Interrunnable Variable.
This is the only way to create an interrunnable variable of array, matrix, or record type. You cannot convert a non-scalar interrunnable variable into a scalar interrunnable variable.
In the Internal Access area, activate Explicit or Implicit behavior.
Note
Write access to a non-scalar interrunnable variable must be implicit. Explicit write access to a non-scalar interrunnable variable causes an error:
Adjust the other properties according to your needs and click OK.
The non-scalar interrunnable variable is listed in the Outline tab. Its elements are available for Message Mapping; they appear in the Internal Access tab. See Accessing ASCET Messages for more details.
Note |
|---|
If you use matrices as interrunnable variables, make sure that the Number of dimensions for fixed matrixestarget option is set to Two-dimensional. Otherwise, a warning WMdl653 is issued during AUTOSAR code generation. By default, this warning is promoted to an error. |
See also
Including a Component as a Complex Element
Including a Component via the Block Library