C-Caller Block in Rapid Accelerator Mode with Busses
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Aabha
2025-3-28
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Environment Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!