C-Caller crash with Matlab 2025a

34 次查看(过去 30 天)
Davide
Davide 2025-8-25,21:43
编辑: Davide 2025-8-28,15:24
I have many models which uses C-Callers and they work properly in accelerator mode with matlab 2024b and previous.
With Matlab 2025a almost all these models crash when I run them. "Validate custom code" runs fine, but when I run the model it crash. In normal as it should be it doesn't crash.
The issue is located into the C-caller of course, but I never had problems until R2025a.
Do you have similar issues? Any advices?
Many thanks in advanced.
D

采纳的回答

Dev
Dev 2025-8-28,11:08
The issue of C-Caller models crashing in MATLAB R2025a might be sporadic since no models crashed when I try to the run the same in R2025a. Please refer to the below link for all the C-Caller Simulink example models which I execute successfully on MATLAB R2025a-
Furthermore, as mentioned in the question, there might be a problem with the C-Caller used in your model which might be causing the crash. Please find the below link which provides a detailed explanation on how to specify and configure C-Caller functions-
I hope the above explanation helps to solve the query.
  2 个评论
Davide
Davide 2025-8-28,15:22
编辑:Davide 2025-8-28,15:24
Hi dev
maybe I found the issue, the problem it seems not into the C-Caller but into the "transport delay". I used it to calculate the average filter.
I checked with a very small model and transport delay works pretty nice with both 2024b/2025a in accelerator mode, but with more complex models it crasches.
It crashes with:
  • simscape with local solver enabled and tc = 125e-6
  • discrete time solver backward euler in global solver
  • some custom ssc simscape model
  • with transport delay it crashs;
  • without transport delay it doesn't crash.
I try to search maybe i see something.
Thanks

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by