Help CenterHelp Center
Add tasks or triggers to selected architecture of model
Simulink.architecture.add(Type,Object)
example
Simulink.architecture.add(Type,Object) adds the new task or trigger Object of the specified Type to a model.
Type
Object
collapse all
Add a task, MyTask1, to the software node MulticoreProcessor of the selected architecture of the slexMulticoreExample model.
slexMulticoreExample
slexMulticoreExample; Simulink.architecture.add('Task','slexMulticoreExample/MulticoreProcessor/Core2/MyTask1');
Object type that identifies the kind of trigger or task to add, , specified as a 'PeriodicTrigger', 'AperiodicTrigger', or 'Task'.
'PeriodicTrigger'
'AperiodicTrigger'
'Task'
Adds a periodic trigger to the architecture. Set the properties of the trigger with the Simulink.architecture.set_param function.
Simulink.architecture.set_param
Adds an aperiodic trigger to the architecture. Set the properties of the trigger with the Simulink.architecture.set_param function.
Adds a task to the architecture. Set the properties of the task with the Simulink.architecture.set_param function.
Trigger or task object identifier to add to architecture, specified as a character vector.
Example: 'slexMulticoreExample/MulticoreProcessor/Core2/MyTask1'
'slexMulticoreExample/MulticoreProcessor/Core2/MyTask1'
Data Types: char
char
Introduced in R2014a
Simulink.architecture.set_param | Simulink.architecture.get_param | Simulink.architecture.delete | Simulink.architecture.find_system | Simulink.architecture.importAndSelect | Simulink.architecture.profile | Simulink.architecture.register
Simulink.architecture.get_param
Simulink.architecture.delete
Simulink.architecture.find_system
Simulink.architecture.importAndSelect
Simulink.architecture.profile
Simulink.architecture.register
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office