C-Caller Block in Rapid Accelerator Mode with Busses

4 Ansichten (letzte 30 Tage)
Matthias Menge
Matthias Menge am 25 Mär. 2025
Beantwortet: Aabha am 28 Mär. 2025
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.

Antworten (1)

Aabha
Aabha am 28 Mär. 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.

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange

Produkte


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by