How do I increase simulation speed for Simulink models that have Embedded MATLAB Function blocks?

조회 수: 5 (최근 30일)
My model has several Embedded MATLAB Function blocks. Is there a way to increase the simulation speed?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
For simulation, the debug instrumentation will make Embedded MATLAB a bit slower. Turning off debugging will help the problem.
1. Start model explorer. From Simulink model windows, select "View" -> "Model Explorer".
2. Click on the model name. This should be right below "Configuration Preferences"
3. Click on the Contents window, scroll all the way to the bottom and select "sfun"
4. Click on the "Coder Options" button and uncheck "enable debugging/animation"
If you are using Simulink 6.3 (R14SP3) or later, you can also turn debugging on and off for individual Embedded MATLAB blocks using the Embedded MATLAB Editor. To do so, open the Embedded MATLAB Editor (by double-clicking on the block) and select the "Debug -> Enable Debugging" option to toggle the use of debugging. This option will be greyed out if debugging has been disabled for all Embedded MATLAB blocks using the method described above.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by