C-Caller Block in Rapid Accelerator Mode with Busses
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Is it possible to use the C-Caller in rapid accelerator mode when using buses?
When I include my structs as buses using `Simulink.importExternalCTypes`, I can't run my simulation in rapid accelerator mode, because there is a name collision between my c code and the code generated by the rapid accelerator build process.
Renaming the structs in my code does not work, as then my c -caller blocks don't recognize them as valid input/output dataformats.
This problem can be reproduced by using the C-Caller example "Call C Functions Using C Caller Block" (https://de.mathworks.com/help/releases/R2024b/simulink/slref/call-c-functions-using-c-caller-block.html).
When switching the example to rapid accelerator mode, the same problem occurs.
0 comentarios
Respuestas (1)
Aabha
el 28 de Mzo. de 2025
I faced a similar problem a while back, when simulating the ‘slexCCallerExample’. I believe Simulink does not support the ‘Rapid Accelerator Mode’ for this model, since it is not explicitly mentioned in the documentation for the example:
This might be because custom code generation is supported by Simulink Coder only when the custom code does not clash with the generated code. Since in this case, the custom code clashes with the code generated while using the ‘Rapid Accelerator Mode’, the mode might not be supported.
I hope this answers your question.
0 comentarios
Ver también
Categorías
Más información sobre Simulink Environment Customization en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!