Simulink.architecture.get_param

Get configuration parameters of architecture objects

Syntax

  • ParamValue = Simulink.architecture.get_param(Object,ParamName) example

Description

example

ParamValue = Simulink.architecture.get_param(Object,ParamName) returns the value of the specified parameter for the object, Object. ParamName is case-sensitive.

Examples

expand all

Get period

Get the period of task Plant of trigger Periodic of software node CPU of the selected architecture for the model sldemo_concurrent_execution.

sldemo_concurrent_execution;
p = Simulink.architecture.get_param('sldemo_concurrent_execution/CPU/Periodic/Plant','Period')
p =

0.1

Input Arguments

expand all

Object — Object whose parameter value to returnstring

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

  • Software node

  • Hardware node

  • Periodic trigger

  • Aperiodic trigger

  • Task

ParamName — Parameter whose value to returnstring

Name of a parameter for which Simulink.architecture.get_param returns a value.

The following are the possible ParamName strings:

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'

Was this topic helpful?