Main Content

Simulink.architecture.get_param

Get configuration parameters of architecture objects

Description

example

paramval = Simulink.architecture.get_param(obj,paramname) returns the value of the specified parameter for the object, obj. The parameter name paramname is case-sensitive.

Examples

collapse all

Get the period of task Task3 of trigger Core2 of software node MulticoreProcessor of the selected architecture for the model slexMulticoreExample.

openExample("simulink_features/AssigningTasksToCoresForMulticoreProgrammingExample"); 
p = Simulink.architecture.get_param('slexMulticoreExample/MulticoreProcessor/Core2/Task3','Period')
p =

0.2

Input Arguments

collapse all

Object for which to get parameter value, specified as a character vector that defines the object full path name. Possible objects are:

  • Software node

  • Hardware node

  • Periodic trigger

  • Aperiodic trigger

  • Task

Parameter value to get, specified as a character vector that defines the name of the parameter.

The following are the possible ParamName values:

For a model:

  • 'ArchitectureName'

  • 'Type'

For a software node:

  • 'Name'

  • 'Type'

For a hardware node

  • 'Name'

  • 'ClockFrequency'

  • 'Color'

  • 'Type'

For a periodic trigger:

  • 'Name'

  • 'Period'

  • 'Color'

  • 'Type'

For an aperiodic trigger:

  • 'Name'

  • 'Color'

  • 'EventHandlerType'

  • 'SignalNumber'

  • 'EventName'

  • 'Type'

For a task:

  • 'Name'

  • 'Period'

  • 'Color'

  • 'Type'

Version History

Introduced in R2014a