C-Caller crash with Matlab 2025a

8 visualizaciones (últimos 30 días)
Davide
Davide el 25 de Ag. de 2025
Editada: Davide el 28 de Ag. de 2025
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

Respuesta aceptada

Dev
Dev el 28 de Ag. de 2025
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 comentarios
Davide
Davide el 28 de Ag. de 2025
Many thanks
Davide
Davide el 28 de Ag. de 2025
Editada: Davide el 28 de Ag. de 2025
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by