Create a named interface in an interface dictionary


interface = addInterface(dictionary,name) creates a named interface in the interface dictionary.

interface = addInterface(dictionary,name,busObject) constructs an interface that mirrors an existing Simulink® bus object.


collapse all

Add an interface newinterface to the interface dictionary of the model.


Input Arguments

collapse all

dictionary can be the default data dictionary that defines local interfaces or an external data dictionary that carries interface definitions. If the model links to multiple data dictionaries, then dictionary must be the one that carries interface definitions.

Data Types: systemcomposer.interface.Dictionary

The name of the new interface must be a valid variable name.

Data Types: char

Use this argument when the interface is already defined in a Simulink Bus object.

Data Types: simulink bus

Output Arguments

collapse all

Interface object with properties Dictionary, Name, and Elements.

Introduced in R2019a