Main Content

socTaskSchedulability

Determine whether set of tasks can be scheduled for specified core assignments

Description

[schedulable,tasks,cores] = socTaskSchedulability(mdl) determines the schedulability of the tasks and cores in the System Composer™ or SoC Blockset™ software model.

[schedulable,tasks,cores] = socTaskSchedulability(allocationSet,allocationScenario) determines the schedulability of the tasks and cores in the System Composer allocation set and scenario captured in Allocation Editor (System Composer) tool for software and hardware architecture diagrams using the PeriodicSoftwareTask and AperiodicSoftwareTask stereotypes.

Input Arguments

collapse all

Name of the Simulink® model or the System Composer model for the processor.

Data Types: string

Name of the allocation set.

Data Types: string

Name of the allocation scenario.

Data Types: string

Output Arguments

collapse all

Indicates whether the task set can be scheduled.

Task information, returned as an array of structures with the fields:

Name of the task in the model.

Indicates whether the task can be scheduled, where 1 indicates the task can be scheduled and 0 indicates the task cannot be scheduled under the current constraints.

Core information, returned as an array of structures with the fields:

Name of the core in the processor.

Usage of the core resources as a percentage.

Version History

Introduced in R2022b