Single task data transfer
Description
Select the diagnostic action to take if a rate transition occurred between two blocks that both operate in single-tasking mode.
Category: Diagnostics
Settings
Default:
none
none
The software takes no action.
warning
The software issues a warning.
error
The software terminates the simulation and issues an error message.
Tips
This parameter allows you to adjust error checking for sample rate transitions between blocks that operate at different sample rates.
Use this parameter when you are modeling a single-tasking system. In such systems, task synchronization is not an issue.
Since variable-step solvers are always single tasking, this parameter applies to them.
The Single task data transfer parameter affects the blocks that are inserted if the Automatically handle rate transition for data transfer parameter is also selected. Those inserted blocks might change the simulation results and block sorted order in some cases.
Programmatic Use
Parameter:
SingleTaskRateTransMsg |
Value:
'none' | 'warning' |
'error' |
Default:
'none' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | none or
error |
Related Topics
- Rate Transition
- Time-Based Scheduling and Code Generation (Simulink Coder)
- Single-Tasking and Multitasking Execution Modes (Simulink Coder)
- Rate Transitions and Data Transfers (Simulink Coder)
- Treat each discrete rate as a separate task
- Diagnosing Simulation Errors
- Model Configuration Parameters: Sample Time Diagnostics