Main Content
Programmatic Interface for Concurrent Execution
Use these functions to configure models for concurrent execution.
To | Use |
---|---|
Create or convert configuration for concurrent execution. | Simulink.architecture.config |
Add triggers to the software node or add tasks to triggers. | Simulink.architecture.add |
Delete triggers or tasks. | |
Find objects with specified parameter values. | |
Get configuration parameters for target architecture. | |
Import and select architecture. | |
Generate profile report for model configured for concurrent execution. | |
Add custom target architecture. | |
Set properties for a concurrent execution object (such as task, trigger, or hardware node). | |
Configure concurrent execution data transfers. |
Map Blocks to Tasks
To map blocks to tasks, use the set_param
function.
Map a block to one task:
set_param(block,'TargetArchitectureMapping',[bdroot 'CPU/PeriodicTrigger1/Task1']);
Map a block to multiple tasks:
set_param(block,'TargetArchitectureMapping',... {[bdroot 'CPU/PeriodicTrigger1/Task1'];... [bdroot 'CPU/PeriodicTrigger1/Task2']});
Get the current mapping of a block:
get_param(block,'TargetArchitectureMapping');