Main Content

socTaskTimes

Plot histogram of the task durations from a recorded Simulation Data Inspector run

Description

taskData = socTaskTimes(modelName,runName) creates an array of structures, one element for each task. Each structure contains the task name, task start times, task durations, and mean and standard deviations of the task durations. The function also plots the histogram of task durations for each task.

taskData = socTaskTimes(___,suppressPlot) to suppress the plot generated.

Input Arguments

collapse all

Name of the Simulink model associated with run containing tasks.

Data Types: char | string

Name of Simulation Data Inspector run containing a task.

Data Types: char | string

Suppress the automatic generation of task duration plots.

Data Types: char | string

Output Arguments

collapse all

Task timing and duration statistics, returned as a structure with the fields:

Introduced in R2019a