lookup

Lookup an architecture element

Description

lookup(modelObject,Name,Value)finds an architecture element based in its UUID or full path.

Examples

collapse all

>> lookup(arch,'Path','RobotSystem/Sensors')

ans = 

  Component with properties:

                   Name: 'Sensors'
                 Parent: [1×1 systemcomposer.arch.Architecture]
                  Ports: [1×2 systemcomposer.arch.ComponentPort]
             OwnedPorts: []
           Architecture: [1×1 systemcomposer.arch.Architecture]
      OwnedArchitecture: []
               Position: [275 75 391 161]
                  Model: [1×1 systemcomposer.arch.Model]
                   UUID: 'f43c9d51-9dc6-43fc-b3af-95d458b81248'
         SimulinkHandle: 9.0002
    SimulinkModelHandle: 2.0002
            ExternalUID: ''

Input Arguments

collapse all

Data Types: systemcomposer.arch.Model

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'Path', 'RobotSystem/Sensors'

Data Types: char

Path to the model element, specified as a character vector.

Data Types: char

Simulink handle of the element

Data Types: double

Introduced in R2019a