MATLAB: Do I receive an error message when I run a model in Multi-Tasking mode in Simulink 6.2 (R14SP2) while the model runs fine in Simulink 5.1 (R13SP1)

blocksetmulti-taskingprocessingsignalsimulinksingle-tasking

I have a Simulink model containing multi-rate blocks such as Downsample and Upsample blocks inside an Enabled Subsystem. This model runs fine in Simulink 5.1 (R13SP1) but generates the following error in Simulink 6.2 (R14SP2).
Error reported by S-function “sdspupsamp” in “test/EnabledSubsystem/Upsample”. Upsample block supports only single tasking mode in enabled subsystem.

Best Answer

The error message is observed because of intentional modifications in Simulink 6.2 (R14SP2) when handling multi-rate blocks such as Upsample and Downsample blocks.
Because of the presence of multi-rate blocks in an Enabled Subsystem in the model, the “Tasking Mode” option in the Solver pane, if it is left as “auto”, would default to “multi-tasking mode”. However, multi-rate blocks are not well supported inside an enabled subsystem when using multi-tasking mode.
In Simulink 6.2 (R14SP2) more care has been taken to identify these errors and report them. Though the model appears to run correctly in Simulink 5.1 (R13SP1), the results are not predictable.
To workaround this issue, set the “Tasking Mode” as “single-tasking” in the Solver pane of the Configuration Parameters dialog. This forces Simulink to simulate the system in single-tasking mode. Note the results from R14SP2 may be different than those from R13SP1. As stated before, the results of Simulink 5.1 are not entirely reliable.