Why do multitasking fixed-step solvers not execute all block outputs when using the MODEL(t,x,u,'outputs') function in Simulink 6.2 (R14SP2)?
6 views (last 30 days)
Show older comments
I have selected a multitasking fixed step solver for a Simulink model and am calling the command MODEL(t,x,u,'outputs'), as specified in the Simulink documentation. This documentation can be accessed by typing the following command at the MATLAB 7.0.4 prompt:
web([docroot,'/toolbox/simulink/slref/model_01.html'])
However, only the outputs of the continuous blocks and blocks of the fundamental step size of the solver are executed. This means blocks of a different sample rate do not have their outputs executed.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The function MODEL(t,x,u,'outputs') should be used only when in single tasking mode. Single tasking mode refers to using a fixed-step solver in single tasking mode or a variable step solver that is defined as single tasking. For information on how to change a model's solver to single tasking, please type the following command at the MATLAB 7.0.4 (R14SP2) prompt:
web([docroot,'/toolbox/simulink/ug/simulation18.html#35866'])
0 Comments
More Answers (0)
See Also
Categories
Find more on Schedule Model Components in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!