Editing the Configuration of an Array or Matrix

Note

This instruction does not explain how to create an array or matrix with variable size. If you want to know how to do that, see Specifying an Array or Matrix with Variable Size.

  1. Open the properties editor for the element.
  2. Use the Name field to edit the element name.
  3. Enter a unit and a comment in the respective fields.

    Each array or matrix element can be assigned a unit. Unit and comment are for documentation purposes only, and do not influence the functionality of the element.

  4. In the X and Y fields, edit the dimension of the array or matrix.
  5. If desired, use the combo boxes of the Variant Size field to select system constants that will determine the array or matrix size.
  6. In the Kind combo box, assign the element kind.

    Available kinds are Variable, Message and Parameter.

  7. In the Basic Type combo box, assign the element type.

    The basic scalar types, Enumeration, Std_ReturnTypeCloseda data type that contains the names of AUTOSAR errors; see RTE Access Macros – Error Codes, and Record are available.

    If you selected Enumeration or Record, the Component combo box appears. It offers all enumerations or records in the database/workspace for selection.

  8. Select a suitable enumeration or record.
  9. Determine the scope of the element.
  10. In the Attributes area, set the Closedfollowing attributes for a local or exported element.

    Reference

    This option determines whether the element is a reference or not.

    This option is only available for variables.

    Virtual

    This option determines whether the element is virtual or not.

    Note

    This option is not available for basic types Enumeration, Std_ReturnType, or Record.

    Dependent

    This option determines whether a parameter is dependent or independent.

    The option is only available for parameters.

    Non-Volatile

    This option determines whether the element is written to the volatile or non-volatile memory of the ECU.

    Data stored in the non-volatile memory of the ECU will not be overwritten upon initialization.

    The option is only available for variables.

    Variants

    This option is unavailable for composite elements.

    Redundant

    This option activates redundant data storage for the element.

    The option is available for arrays/matrices of kind Variable or Message and scope Local or Exported.

    Note

    Redundant and Non-volatile must not be activated simultaneously.

    Redundant cannot be activated for an array/matrix of record type.

  11. Specify external and – for explicit references and messages – internal access.
  12. Specify calibration access.
  13. Click OK to close the properties editor.

See also

Specifying an Array or Matrix with Variable Size

Opening the Properties Editor

Scalar Types

Software Component Editors – RTE Access Macros

Kind of Elements

Editing the Element Scope

Scope of Elements

Specifying a Reference

Enabling or Disabling Elements

Editing Calibration Access