Simulink.architecture.find_system

Find objects under architecture object

Syntax

  • object = Simulink.architecture.find_system(RootObject) example
  • object = Simulink.architecture.find_system(RootObject,ParamName,ParamValue) example

Description

example

object = Simulink.architecture.find_system(RootObject) looks for all objects under RootObject.

example

object = Simulink.architecture.find_system(RootObject,ParamName,ParamValue) returns the object in RootObject whose parameter ParamName has the value ParamValue. Parameter name and value strings are case-sensitive.

Examples

expand all

Look for all objects

To find all the objects in sldemo_concurrent_execution:

sldemo_concurrent_execution
t = Simulink.architecture.find_system('sldemo_concurrent_execution')
t = 

    'sldemo_concurrent_execution'
    'sldemo_concurrent_execution/CPU'
    'sldemo_concurrent_execution/CPU/Periodic'
    'sldemo_concurrent_execution/CPU/Periodic/ControllerA'
    'sldemo_concurrent_execution/CPU/Periodic/ControllerB'
    'sldemo_concurrent_execution/CPU/Periodic/Plant'
    'sldemo_concurrent_execution/CPU/Interrupt'

Look for all tasks

To find all the tasks in sldemo_concurrent_execution:

sldemo_concurrent_execution
t = Simulink.architecture.find_system('sldemo_concurrent_execution','Type','Task')
t = 

    'sldemo_concurrent_execution/CPU/Periodic/ControllerA'
    'sldemo_concurrent_execution/CPU/Periodic/ControllerB'
    'sldemo_concurrent_execution/CPU/Periodic/Plant'

Input Arguments

expand all

RootObject — Object to searchstring

Object to search for parameter value, specified as a string giving the object full path name. Possible objects are:

  • Model

  • Software node

  • Hardware node

  • Periodic trigger

  • Aperiodic trigger

  • Task

Example: 'sldemo_concurrent_execution'

ParamName — Name of parameter to findstring | scalar | vector

Name of the parameter to find, specified as a string. Possible string values are:

  • 'Name'

  • 'Type'

  • 'ClockFrequency'

  • 'Color'

  • 'Period'

  • 'EventHandlerType'

  • 'SignalNumber'

  • 'EventName'

Example: 'EventName'

ParamValue — Parameter value to findstring | scalar | vector

Parameter value to find, specified as a string, a scalar, or a vector.

Example: 'ERTDefaultEvent'

Was this topic helpful?