Interface Editor
Create and author interfaces in local and shared interface data dictionaries
Description
The Interface Editor allows you to define interfaces in System Composer™ that might contain attributes. In System Composer architecture models, interfaces are necessary to specify information that flows through ports between components.
Note
When you load existing interface data dictionaries, Simulink® automatically migrates them to the Architectural Data section of the
Simulink data dictionary. In addition to the Interface
Editor, you can also use the Architectural Data
Editor and Simulink.dictionary.ArchitecturalData
programmatic interfaces to manage and
modify interfaces and value types. For more information on managing architectural data, see
Store Shared Data in Architectural Data Section and Store Data in Architectural Data Section Programmatically.
Types of interfaces include:
Composite Data Interface — Represents the information that is shared through a connector and enters or exits a component through a port, A data interface can be composite, meaning that it can include data elements that describe the properties of an interface signal.
Value Type — Can be used as a port interface to define the atomic piece of data that flows through that port and has a top-level type, dimension, unit, complexity, minimum, maximum, and description. You can also assign the type of data elements in data interfaces to value types.
Physical Interface — Defines the kind of information that flows through a physical port, The same interface can be assigned to multiple ports. A physical interface bundles physical elements to describe a physical model using at least one physical domain
Service Interface — Defines service elements with function arguments for a client-server port. This interface is only available for software architectures.
You can save a locally defined model data dictionary as a shared data dictionary to reuse interface definitions across architecture models. Apply a profile to your data dictionary to assign stereotypes to interfaces. These interfaces typed by a stereotype now contain metadata, and you can set the property values for each interface independently.
You can toggle the view for the Interface Editor depending on the locality of the interfaces:
Dictionary View — Shows shared interfaces across the model that can be reused on multiple ports
Port Interface View — Shows owned interfaces locally defined on a single port
Open the Interface Editor
System Composer toolstrip: Navigate to Modeling > Interface Editor.
System Composer toolstrip: Navigate to Modeling > Architecture Views to launch the Architecture Views Gallery tool. In the View Browser, select a new or existing architecture view. On the toolstrip, click the Interface Editor button.
Examples
Parameters
More About
Version History
Introduced in R2019a
See Also
addInterface
| moveInterface
| removeInterface
| addElement
| removeElement
| connect
| setInterface
| addValueType
| connect
| getDestinationElement
| getSourceElement
| createInterface
| createOwnedType
| Adapter | createDictionary
| openDictionary
| saveToDictionary
| linkDictionary
| unlinkDictionary
| addReference
| removeReference