Documentation

Simulink.architecture.set_param

Set architecture object properties

Syntax

  • Simulink.architecture.set_param(Object,ParamName,ParamValue)
    example

Description

example

Simulink.architecture.set_param(Object,ParamName,ParamValue) sets the specified parameter of Object to the specified value. Parameter name and value character vectors are case sensitive.

Examples

collapse all

Set the software node name from MulticoreProcessor to MyCPUNewName.

slexMulticoreExample
Simulink.architecture.set_param([bdroot '/MulticoreProcessor'],'Name','MyCPUNewName');

Set Core2 trigger period to .01.

slexMulticoreExample
Simulink.architecture.set_param([bdroot '/MyCPUNewName/Core2'],'Period','.01')

Input Arguments

collapse all

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

  • Software node

  • Hardware node

  • Periodic trigger

  • Aperiodic trigger

  • Task

Name of parameter whose value to set.

These are the possible parameters whose values you can set for each of the object types:

For software node:

  • 'Name' — Name of the software node.

For hardware node:

  • 'Name' — Name of the hardware node.

  • 'ClockFrequency' — Frequency of the hardware node clock.

  • 'Color' — Color of the trigger icon, specified as an RGB triplet (vector).

For a periodic trigger:

  • 'Name' — Name of the trigger.

  • 'Period' — Period of the trigger.

  • 'Color' — Color of the trigger icon, specified as an RGB triplet (vector).

For an aperiodic trigger:

  • 'Name' — Name of the trigger.

  • 'Color' — Color of the trigger icon, specified as an RGB triplet (vector).

  • 'EventHandlerType' — Trigger source for the interrupt-driven task. Possible values:

    • 'Event (Windows)'

    • 'Posix Signal (Linux/VxWorks 6.x)'

  • 'SignalNumber' — Signal number for the trigger. You can set this value only if EventHandlerType is set to Event (Windows).

  • 'EventName' — Event name for the trigger. You can set this value only if EventHandlerType is set to Posix Signal (Linux/VxWorks 6.x).

For task:

  • 'Name' — Name of the task.

  • 'Period' — Period of the task.

  • 'Color' — Color of the task icon, specified as an RGB triplet (vector).

Data Types: char

Value to set the parameter to, specified as a character vector, scalar, or vector. The possible values depend on the parameter.

Example: 'MyCPUNewName'

Introduced in R2014a

Was this topic helpful?