Main Content

Simulink.architecture.add

Add tasks or triggers to selected architecture of model

Description

Simulink.architecture.add(t,obj) adds the new task or trigger obj of the specified type t to a model.

example

Examples

collapse all

Add a task, MyTask1, to the software node MulticoreProcessor of the selected architecture of the slexMulticoreExample model.

openExample("simulink_features/AssigningTasksToCoresForMulticoreProgrammingExample"); 
Simulink.architecture.add('Task','slexMulticoreExample/MulticoreProcessor/Core2/MyTask1');

Input Arguments

collapse all

Type of trigger or task to add, specified as 'PeriodicTrigger', 'AperiodicTrigger', or 'Task'.

Trigger or task object identifier to add to architecture, specified as a character vector.

Example: 'slexMulticoreExample/MulticoreProcessor/Core2/MyTask1'

Data Types: char

Version History

Introduced in R2014a