Main Content

Multitask data store

Diagnostic action to take when task reads from data store to which another task writes

Model Configuration Pane: Diagnostics / Data Validity

Description

The Multitask data store parameter specifies the diagnostic action to take if a task reads data from a Data Store Memory block to which another task writes. A task reading from a data store to which another task writes is safe only if one task cannot interrupt the other. For example, this operation is safe when the data store is a scalar and the task that writes to the data store uses an atomic copy operation to update the data store and when the target does not allow the tasks to preempt each other.

Settings

error (default) | warning | none
error

The software issues an error and terminates the simulation if a task reads from a Data Store Memory block to which another task writes.

warning

The software issues a warning if a task reads from a Data Store Memory block to which another task writes.

none

The software does not issue a diagnostic if a task reads from a Data Store Memory block to which another task writes.

Use this setting only if the application warrants this behavior. For example, you can use this setting if the application uses a cyclic scheduler that prevents tasks from preempting each other.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: MultiTaskDSMMsg
Type: string | character vector
Value: "none" | "warning" | "error"
Default: "error"

Version History

Introduced in R2006a