Consolidation of Scopes seems to have caused solve time increase.
1 次查看(过去 30 天)
显示 更早的评论
I'm working with a Simulink model which has a total of 8 Scopes each with 4(+) inputs. In order to reduce the total number of Scopes and, to create some overlay plots, I combined the signals with Bus signals and passed those into a total of 3 Scopes. After 2 Scopes were consolidated the solve time was "normal", but after the 3rd it is now taking minutes rather than seconds to solve. (I'm using a variable step solver with a .) I have tried commenting out and deleting the Scopes but the change seems to be "perminent". I understand there is a burden for Scopes but I have the same number of total curves being plotted, not sure if the Bus managmenet would add burden? I also replaced the Bus with Mux with the same result. Has anyone experienced this or know the cause?
FYI, I cannot include the direct code but could create a standalone representation if soemone needs the visual.
2 个评论
Ganesh
2023-8-10
Hi Gary,
To clarify on the issue, I would like to know if, by dissolving the third scope, you are able to bring back the original time to simulate the model.
Thank you,
Ganesh Saravanan
回答(1 个)
Sarthak
2023-8-22
Hi Gary,
As per my understanding, it seems like you are experiencing performance issues in your Simulink model after consolidating the signals with Bus signals and passing them into Scopes. This could be happening due to the increased computational burden on the solver. However, if deleting the Scopes does not revert the solver time back to its original faster state, it suggests that the performance issue might be caused by factors other than the Scopes themselves.
It is challenging to determine exactly what is causing this without looking at your model, but you can verify that the model complexity, solver configurations and any block settings have not changed which is causing this issue.
If the issue persists, please create a service request from the link given below.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!