getInterface

Get the object for a named interface in an interface dictionary

Description

interface = getInterface(dictionary,name) gets the object for a named interface in the interface dictionary.

Examples

collapse all

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

addInterface(arch.InterfaceDictionary,'newsignal')
iface = getInterface(arch.InterfaceDictionary,'newsignal')
iface = 
  SignalInterface with properties:
     Dictionary: [1×1 systemcomposer.interface.Dictionary]
           Name: 'newsignal'
       Elements: [0×0 systemcomposer.interface.SignalElement]
           UUID: '438b5004-6cab-40eb-955b-37e0df5a914f'
    ExternalUID: ''

Input Arguments

collapse all

This is the data dictionary attached to the model. It could be the local dictionary of the model or an external data dictionary.

Data Types: systemcomposer.interface.Dictionary

Data Types: char

Output Arguments

collapse all

Introduced in R2019a