필터 지우기
필터 지우기

Consolidation of Scopes seems to have caused solve time increase.

조회 수: 3 (최근 30일)
Gary
Gary 2023년 7월 26일
답변: Sarthak 2023년 8월 22일
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
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
Gary
Gary 2023년 8월 15일
Hi Ganesh,
If I delete the third scope the solve time remains long. I have even tried deleting all the scopes and it won't revert back to the faster time.

댓글을 달려면 로그인하십시오.

답변 (1개)

Sarthak
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.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by