Main Content

lookup

Search for architecture element

Description

example

element = lookup(object,Name,Value) finds an architecture element based on its universal unique identifier (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

Architecture model object to look up using the UUID, specified as a systemcomposer.arch.Model object.

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: lookup(arch,'Path','RobotSystem/Sensors')

Search by UUID, specified as the comma-separated pair consisting of 'UUID' and a character vector of the UUID.

Example: lookup(arch,'UUID','f43c9d51-9dc6-43fc-b3af-95d458b81248')

Data Types: char

Search by Simulink® handle, specified as the comma-separated pair consisting of 'SimulinkHandle' and a double of the SimulinkHandle value.

Example: lookup(arch,'SimulinkHandle',9.0002)

Data Types: double

Search by file path, specified as the comma-separated pair consisting of 'Path' and a character vector with the path defined.

Example: lookup(arch,'Path','RobotSystem/Sensors')

Data Types: char

Introduced in R2019a