Main Content

Interface Editor

Edit an Interface Dictionary

Description

The Interface Editor lets you edit an interface dictionary through a Simulink.interface.Dictionary object without having to open a system architecture in the Simulink Editor. By using the Interface Editor, you can create interfaces, datatypes and platform specific objects like SwAddrMethods. You can configure both their design specification and platform specific attributes like IsService, Package, and InterfaceKind for AUTOSAR Classic platform. Setting these properties in the Interface Editor sets the properties in the Interface Dictionary SLDD file.

Using a tabbed table format, the Interface Editor displays Interface Dictionary interfaces, data types, software address methods, and other Interface Dictionary content. For more information, see Manage Shared Interfaces and Data Types for AUTOSAR Architecture Models.

With the standalone Interface Editor, you can easily create, configure, and manage large amounts of design data.

  • Create — On the toolstrip, in the Create section, quickly add data type definitions and interfaces. Data types and interfaces each have a dedicated tab for easier data management.

  • Configure — In the right panel, use the Property Inspector to configure your data. The Property Inspector can also display platform-specific properties. For example, when you set the deployment platform to AUTOSAR Classic, the property inspector also displays AUTOSAR interface properties such as InterfaceKind, IsService, and Package. Setting these properties in the Property Inspector sets them in the generated interface dictionary .sldd file.

  • Manage — You can filter, sort, and search data on the Interfaces and Data Types tabs.

In addition to the Interfaces and Data Types tabs, the Interface Editor displays platform-specific data for the AUTOSAR Classic platform in the SwAddrMethods tab.

The Contents pane provides an interactive table with information about the objects, such as hierarchy and properties. You can select which columns appear in the table by using the Columns list in the toolstrip. Use the table to:

  • Filter objects — Enter a universal filter or a column-specific filter.

  • Edit objects — Double-click a value in the table and enter a new value. When you enter a value that is not supported, a diagnostic message appears in this pane.

  • Batch edit objects — Select objects of the same type that you want to edit. Double-click a value of one of the selected objects and enter a new value. The new value applies to all selected objects.

  • Reorder interface and structure type element objects — Drag the element objects to a new position or use the Move Up and Move Down buttons in the toolstrip.

  • Cut, copy, and paste objects — Use keyboard shortcuts or the corresponding buttons in the toolstrip.

  • Delete objects — Press the Delete key or click the Delete button in the toolstrip. When you delete an interface object, you also delete the interface element objects it contains

The Property Inspector pane lets you focus on one object at a time and edit the object properties. When you enter a value that is not supported, a diagnostic message appears in this pane. To undo or redo a change, right-click the corresponding box. Then, select Undo or Redo.

The Interface Editor can export the AUTOSAR content of the dictionary to ARXML. The export operation creates a folder within the current folder that contains the ARXML files.

For more information about using the Contents pane, see Manage Interfaces with Data Dictionaries (System Composer).

The Interface Editor controls let you set up the editor display and to modify the interface dictionary.

ControlsInterface Editor Operations

Image of Data Interface button

The Data Interface button adds a data interface with the specified name in the interface dictionary. The operation of this button is similar to the addDataInterface function.

Image of Add Value Type button

The Value Type button adds a Simulink.ValueType with the specified name to the interface dictionary. The operation of this button is similar to the addValueType function.

Image of Alias Type button

The Alias Type button adds a Simulink.AliasType with the specified name to the interface dictionary. The operation of this button is similar to the addAliasType function.

Image of Enumerated Type button

The Enumerated Type button adds a Simulink enumeration with the specified name to the interface dictionary. The operation of this button is similar to the addEnumType function.

Image of SwAddrMethod button

The SwAddrMethod button opens the SwAddrMethods tab and displays platform-specific data for the AUTOSAR Classic platform.

Image of Structured Type button

The Structured Type button adds a Simulink.Bus type with the specified name to the interface dictionary. The operation of this button is similar to the addStructType function.

Image of Requirements button

The Requirements button opens the Traceability Matrix, lets you manage requirement links for interfaces and data types, and lets you save requirements links.

Image of Columns button

The Columns button lets you select columns of element properties to display in the Contents pane of the Interface Editor. The column selects differ depending on the selected Contents pane tab: Interfaces, Data Types, and SwAddrMethods.

Image of XML Options button

The XML Options button opens the View and Edit XML Options dialog box and lets you set options for export to ARXML files.

Image of Export button

The Export button exports the dictionary contents to ARXML. This operation creates a folder in the current folder that contains the ARXML files. The operation of this button is similar to the exportDictionary function.

Image of Interface Editor

Open the Interface Editor

You can open the Interface Editor either from the Simulink® Editor or from the MATLAB® Command Window.

  • In the Simulink Editor for a system architecture, select Modeling > Design > Interface Editor.

  • If the Interface tab is open, click the Open Interface Dictionary button.

  • If you have opened an Interface Dictionary object (for example, dictionaryObjectName), in the MATLAB Command Window, type

    show(dictionaryObjectname)

Version History

Introduced in R2022b