Main Content


Create named interface in interface dictionary



interface = addInterface(dictionary,name) adds a named interface to a specified interface dictionary.


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


collapse all

Add an interface 'newInterface' to the specified data dictionary.

interface = addInterface(dictionary,'newInterface')

Add a named interface that mirrors an existing Simulink bus object to a specified dictionary.

interface = addInterface(dictionary,'newInterface','SimulinkBus','myBus')

Input Arguments

collapse all

Data dictionary attached to architecture model, specified as a systemcomposer.interface.Dictionary object. This is 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. For information on how to create a dictionary, see systemcomposer.createDictionary.

Name of new interface, specified as a character vector.

Data Types: char

Simulink bus object that new interface mirrors where the interface is already defined, specified as a Simulink bus object.

Output Arguments

collapse all

New interface object, returned as a systemcomposer.interface.SignalInterface object.

Introduced in R2019a