Documentation Center

  • Trial Software
  • Product Updates

Simulink.architecture.add

Add tasks or triggers to selected architecture of model

Syntax

  • Simulink.architecture.add(Type,Object) example

Description

example

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

Examples

expand all

Add periodic trigger

Add a periodic trigger, MyTrigger1, to the software node CPU of the selected architecture of the sldemo_concurrent_execution model.

sldemo_concurrent_execution;
Simulink.architecture.add('PeriodicTrigger','sldemo_concurrent_execution/CPU/MyTrigger1');

Input Arguments

expand all

Type — Object type'PeriodicTrigger' | 'AperiodicTrigger' | 'AperiodicTrigger'

Object type that identifies the kind of trigger or task to add, , specified as a 'PeriodicTrigger', 'AperiodicTrigger', or 'Task'.

Object — Trigger or task object identifierstring

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

Example: 'sldemo_concurrent_execution/CPU/MyTrigger1'

Data Types: char

See Also

| | | | | |

Was this topic helpful?