define port interfaces between components -凯发k8网页登录

main content

define port interfaces between components

a systems engineering solution in system composer™ includes a formal definition of the interfaces between components. a connection shows that two components have an output-to-input relationship, and an interface defines the type, dimensions, units, and structure of the data.

a data interface defines the kind of information that flows through a port. the same interface can be assigned to multiple ports. a data interface can be composite, meaning that it can include data elements that describe the properties of an interface signal.

data interfaces represent the information that is shared through a connector and enters or exits a component through a port. use the to create and manage data interfaces and data elements and store them in an interface data dictionary for reuse between models.

a data element describes a portion of an interface, such as a communication message, a calculated or measured parameter, or other decomposition of that interface.

data interfaces are decomposed into data elements:

  • pins or wires in a connector or harness.

  • messages transmitted across a bus.

  • data structures shared between components.

a 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. add value types to data dictionaries using the so that you can reuse the value types as interfaces or data elements.

use interfaces to describe information transmitted across connections through ports between components.

  • : design interfaces and nested interfaces in the with data interfaces, data elements, and value types.

  • : assign data interfaces and data elements to ports. define owned interfaces local to ports.

  • : save external interface data dictionaries to reuse between different models, link data dictionaries to architecture models, and delete data interfaces from data dictionaries.

  • : reference data dictionaries so you can selectively share interface definitions among models. manage referenced data dictionaries in the .

  • : use an block to help connect two components with incompatible port interfaces by mapping between the two interfaces. use the interface adapter dialog by double-clicking the adapter block to map between interfaces, apply an interface conversion that breaks algebraic loops with unit delays, insert a rate transition for different sample time rates, or use the adapter block as a merge block to merge message lines for architecture models or both message and signal lines for software architecture models. when output interfaces are undefined, you can use input interfaces in bus creation mode of the interface adapter to author owned output interfaces as you work.

the architecture model below represents an adapter, an interface data dictionary, a data interface, a data element, and a value type.

architecture model with interface editor open

note

system composer interfaces mirror simulink® interfaces that use buses and value types. for more information, see , , and implement component behavior using simulink.

related topics

网站地图