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:

  1. Do one of the following:

    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.

  2. 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.

  3. 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:

  4. 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

Interrunnable Variables

Creating an Array or Matrix

Including a Component as a Complex Element

Including a Component via the Block Library

Accessing ASCET Messages

Creating a Scalar Interrunnable Variable

Records