Single task data transfer
Diagnostic action to take for unspecified data transfers between rates
Model Configuration Pane: Diagnostics / Sample Time
Description
The Single task data transfer parameter specifies the diagnostic action to take if a rate transition occurred between two blocks that both operate in single-tasking mode.
Settings
noneThe software takes no action.
warningThe software issues a warning.
errorThe 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.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | none or error |
Programmatic Use
Parameter: SingleTaskRateTransMsg |
Value: "none" | "warning" | "error" |
Default: "none" |
Version History
Introduced in R2006a
See Also
Topics
- Rate Transition
- Time-Based Scheduling and Code Generation (Simulink Coder)
- Single-Tasking and Multitasking Execution Modes (Simulink Coder)
- Data Transfer Representation and Processing (Simulink Coder)
- Treat each discrete rate as a separate task
- Diagnosing Simulation Errors
- Model Configuration Parameters: Sample Time Diagnostics