Associate a port with an interface using the Property Inspector. (If you need to reopen the Property Inspector, locate it in the toolstrip, in the Design section drop-down.) Highlight the SensorData port in the model to show its properties. Expand Interface, and select the interface in the Name drop-down menu.
You can select an interface in the model data dictionary (see Define Interfaces), or create an anonymous interface — unstructured data whose properties are valid for that port only. An anonymous interface does not have a structure, but has prescribed properties such as Type, Dimensions, and so on. You can edit the properties of the anonymous interface in the Property Inspector.
Multiple ports, whether they are connected or not, can use the same interface definition. When you assign an interface to a port, it is automatically propagated to the connected ports, provided they do not already have assignments.
Highlight the ports that use an interface definition by clicking the interface name in the Interface Editor.
It is possible to have different interfaces assigned to the source port and destination port of a connection. This could represent an intermediate point in design, where components from different sources are brought together. You can use an Interface Adapter block from the component palette to connect components with different interfaces.
Change the number of input ports of an interface adapter the same way you add and remove component ports. For more information, see Ports.