How can I make the Scope block run faster in Simulink?
1 view (last 30 days)
Show older comments
I would like the Scope block to run faster in Simulink. I was able to make it run faster by placing the Scope block inside an Enabled Subsystem with a Detect Change block. I would like this improvement to be implemented in future releases of Simulink.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
The ability to make the Scope block run faster is not available in Simulink.
To work around this issue, you can try one of the following techniques:
1. Use a Simulink viewer. Compare the model "f14.mdl" to "sldemo_f14.mdl". See the Performance tab on the model viewer in "sldemo_f14" and note that you can set the refresh period.
2. Set a discrete sample time for the Scope block. You will miss some continuous data.
3. Place the Scope block inside an Enabled Subsystem. You can then connect a Detect Change block to the enable port of the Enabled Subsystem, so that the Scope block collects samples only when changes in input occur.
0 Comments
More Answers (0)
See Also
Categories
Find more on Schedule Model Components in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!