Main Content

Programmatic Interface for Concurrent Execution

Use these functions to configure models for concurrent execution.

ToUse

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.

Simulink.architecture.delete

Find objects with specified parameter values.

Simulink.architecture.find_system

Get configuration parameters for target architecture.

Simulink.architecture.get_param

Import and select architecture.

Simulink.architecture.importAndSelect

Generate profile report for model configured for concurrent execution.

Simulink.architecture.profile

Add custom target architecture.

Simulink.architecture.register

Set properties for a concurrent execution object (such as task, trigger, or hardware node).

Simulink.architecture.set_param

Configure concurrent execution data transfers.

Simulink.GlobalDataTransfer

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'); 

Related Topics