Get the object a signal interface element


element = getElement(interface,elementName) gets the object for an element in a signal interface.


collapse all

Add an interface newinterface to the interface dictionary of the model and add an element with type double to it. Then get the object for the element.

interface = addInterface(arch.InterfaceDictionary,'newsignal');
element = getElement(interface,'newsignal')
element = 
  SignalElement with properties:

      Interface: [1×1 systemcomposer.interface.SignalInterface]
           Name: 'newelement2'
           Type: 'double'
     Dimensions: '1'
          Units: ''
     Complexity: 'real'
        Minimum: '[]'
        Maximum: '[]'
    Description: ''
           UUID: 'f42c8166-e4ad-4488-926a-293050016e1a'
    ExternalUID: ''

Input Arguments

collapse all

The object handle to the element to be identified.

Data Types: systemcomposer.interface.SignalInterface

Data Types: char

Output Arguments

collapse all

Introduced in R2019a