필터 지우기
필터 지우기

Why does sample time propagation take 10-20 minutes in newer Matlab Simulink Version?

조회 수: 2 (최근 30일)
We use Simulink for large system simulations with multiple C-Mex S-Functions inside.
Right now we want to upgrade to Matlab 2024a. However when testing our models with Matlab 2023b and 2024a, we noticed that starting a simulation in Normal Mode takes ~20 minutes, while before it took at most 1-2 Minutes.
Same behaviour for Accelerator Mode, where it easily takes half an hour until the simulation start (before ~5-10 minutes) and even worse for exporting our Models to FMU.
During the compile process of the model we observe "Compiling: Propagating sample times" to take a lot longer than before.
What has changed in the latest Simulink releases, that sample time propagation now takes way longer than before?
We already tried looking at settings but couldn't find anything new that seems to change anything here. We also tried setting explicit sample times whereever possible etc..
What else can we do to get to the root of the problem, or is this just something that new Simulink Versions have inside now?
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2024년 4월 11일
I wonder if those S-functions have been re-built in the newer version of MATLAB. If Yes, I would suggest sending the models to the Mathworks to find the cause.
Daniel Eberle
Daniel Eberle 2024년 4월 15일
Thank you for the comment, yes indeed we re-built it in the newer versions.
I was hoping maybe someone else experienced this behaviour, but I guess I will contact support directly then.

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

답변 (0개)

카테고리

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

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by