Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Simulink.architecture.find_system

Find objects under architecture object

Syntax

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

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

Examples

collapse all

To find all the objects in slexMulticoreExample:

slexMulticoreExample
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:

slexMulticoreExample
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'

Introduced in R2014a

Was this topic helpful?