Multitask data store
Description
Select the diagnostic action to take when one task reads data from a Data Store Memory block to which another task writes data.
Category: Diagnostics
Settings
Default: error
none
Simulink® software takes no action.
warning
Simulink software displays a warning.
error
Simulink software terminates the simulation and displays an error message.
Tips
Such a situation is safe only if one of the tasks cannot interrupt the other, such as when the data store is a scalar and the writing task uses an atomic copy operation to update the store or the target does not allow the tasks to preempt each other.
You should disable this diagnostic (set it to
none
) only if the application warrants it, such as if the application uses a cyclic scheduler that prevents tasks from preempting each other.
Command-Line Information
Parameter: MultiTaskDSMMsg |
Value: 'none' | 'warning' | 'error' |
Default:
'error' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |