Setting Up a Calibration Interface

A Calibration interface can contain scalar parameters, enumeration parameters, array parameters, matrix parameters, and record parameters.

  1. Open the Calibration interface editor.

    Note

    Element names must not begin with a number. If you enter a name that begins with a number, an allowed name is suggested instead.

    If it is not desired to open the properties editor upon an element’s creation, deactivate the Always show Edit Dialog for new elements option at the bottom of the properties editor.

  2. ClosedAdd a scalar parameter.

    1. In the Elements palette or toolbar, click the button ( / ) for the parameter you want to create.

      The properties editor opens.

    2. Edit the element properties and click OK.

  3. ClosedAdd an enumeration.

    1. In the Elements palette, click the Enumeration Parameter button.

      The Enumeration Selection window opens. All enumeration types defined in the database/workspace are displayed in the Enumeration Type combo box.

    2. Select an enumeration type from the combo box.
    3. Click OK to close the selection window.

      The properties editor opens.

    4. Edit the enumeration properties and click OK.

    Alternatively, you can add an enumeration the same way as described in Including a Component as Complex Element, or you can drag it from the Component Manager onto the Outline tab of the Calibration interface editor.

  4. ClosedAdd an array or matrix.

    1. In the Elements palette or toolbar, click the Array or Matrix button.

      The properties editor opens.

    2. In the X (and Y) field(s), enter the maximum size of the array/matrix.

    3. To specify a variant size, use the Variant Size field(s) to select the system constants you want to use as dimension values.

      Step 5 describes the creation of a system constant. Both normal and user-defined system constants can be used. The value of a system constant should be in the range 1 ... X (or 1 ... Y).

      Note

      Matrices with variant size are not supported. A matrix with variant size causes an MMdl697 error.

      Arrays/matrices with variable size are not available in Calibration interfaces.

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

      The basic scalar types and Enumeration and Record are available. If you select Enumeration or Record, the Closedfollowing happens.

      The Component combo box appears. It offers all enumerations or records in the database/workspace for selection.

      • Select a suitable enumeration or record.
    5. Adjust the other element properties according to your needs and click OK.

      If you exceeded the maximum size of the element axes in the Dimension fields, the following warning opens.

      The possible *Closed = dimension or dimension x or dimension y max size has to be between 1 and 65535. Please adjust your settings.

      If the product of the X and Y dimensions of a matrix exceeds the maximum size of the matrix, the following warning opens.

      The possible matrix elements max size of 1048576 has been exceeded. Please adjust your setting <number>.

      • Confirm the warning with OK and adapt the dimension(s).

      If you selected a system constant whose value is outside the allowed range, the following warning opens:

      The Attribute * Size (<n>) is not in the allowed range of >0 and max value (<i>)

      • Click Cancel to return to the properties editor, or click OK to select the system constant anyway.
  5. ClosedAdd a system constant.

    Note

    In a Calibration interface, system constants can only be used to determine the variant size of an array, i.e. the system constant must be of integer type.

    1. In the Elements palette or toolbar, click the * Parameter button ( / ) for an integer type.

      The properties editor opens.

    2. In the Kind combo box, select System Constant.

      You can also select any user-defined system constant.

    3. Edit the other element properties and click OK.
  6. ClosedInclude a record.

    1. In the Insert menu, select Component.

      Or

    2. Click the Insert Component button.

      The Select Item window opens. It shows the content of the current database or workspace.

    3. From the 1 Database or 1 Workspace list, select the record you want to add.

    4. Click OK to add the record.

    Alternatively, you can add a record as described in Including a Component as Complex Element, or you can drag it from the Component Manager onto the Outline tab of the Calibration interface editor.

  7. Implement the calibration parameters.
  8. Edit the data for the calibration parameters.

You can change the properties of an element later in the properties editor; see Editing Element Properties.

See also

Opening an AUTOSAR Interface Editor

Editing Element Properties

Variant Size for Arrays and Matrices

Constants and System Constants

User-Defined System Constants

Scalar Types

Including a Component as Complex Element

Implementing Calibration Parameters

Data Editor – Editing Scalar Types

Data Editor – Editing Combined Types

Showing and Hiding Confirmation Dialog Windows