Clear Filters
Clear Filters

Consolidation of Scopes seems to have caused solve time increase.

1 view (last 30 days)
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 Comments
Ganesh
Ganesh on 10 Aug 2023
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 on 15 Aug 2023
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.

Sign in to comment.

Answers (1)

Sarthak
Sarthak on 22 Aug 2023
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.

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!