C-Caller crash with Matlab 2025a

36 Ansichten (letzte 30 Tage)
Davide
Davide am 25 Aug. 2025 um 21:43
Bearbeitet: Davide am 28 Aug. 2025 um 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

Akzeptierte Antwort

Dev
Dev am 28 Aug. 2025 um 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 Kommentare
Davide
Davide am 28 Aug. 2025 um 11:28
Many thanks
Davide
Davide am 28 Aug. 2025 um 15:22
Bearbeitet: Davide am 28 Aug. 2025 um 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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Produkte


Version

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by