Main Content

Simulink.architecture.add

Add tasks or triggers to selected architecture of model

Description

example

Simulink.architecture.add(Type,Object) adds the new task or trigger Object of the specified Type to a model.

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

Object type that identifies the kind of trigger or task to add, , specified as a '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