Main Content

Simulink.architecture.find_system

Find objects under architecture object

Description

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 character vectors are case-sensitive.

example

Examples

collapse all

To find all the objects in slexMulticoreExample:

openExample("simulink_features/AssigningTasksToCoresForMulticoreProgrammingExample"); 
t = Simulink.architecture.find_system('slexMulticoreExample')
t = 

    'slexMulticoreExample'
    'slexMulticoreExample/MulticoreProcessor'
    'slexMulticoreExample/MulticoreProcessor/Core1'
    'slexMulticoreExample/MulticoreProcessor/Core1/Task1'
    'slexMulticoreExample/MulticoreProcessor/Core1/Task2'
    'slexMulticoreExample/MulticoreProcessor/Core2'
    'slexMulticoreExample/MulticoreProcessor/Core2/Task3'
    'slexMulticoreExample/MulticoreProcessor/Core2/Task4'

To find all the tasks in slexMulticoreExample:

openExample("simulink_features/AssigningTasksToCoresForMulticoreProgrammingExample"); 
t = Simulink.architecture.find_system('slexMulticoreExample',...
                                      'Type','Task')
t = 

    'slexMulticoreExample/MulticoreProcessor/Core1/Task1'
    'slexMulticoreExample/MulticoreProcessor/Core1/Task2'
    'slexMulticoreExample/MulticoreProcessor/Core2/Task3'
    'slexMulticoreExample/MulticoreProcessor/Core2/Task4'

Input Arguments

collapse all

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

  • Model

  • Software node

  • Hardware node

  • Periodic trigger

  • Aperiodic trigger

  • Task

Example: 'slexMulticoreExample'

Name of the parameter to find. Possible values are:

  • 'Name'

  • 'Type'

  • 'ClockFrequency'

  • 'Color'

  • 'Period'

  • 'EventHandlerType'

  • 'SignalNumber'

  • 'EventName'

Example: 'EventName'

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

Example: 'ERTDefaultEvent'

Version History

Introduced in R2014a