Generation of Platform (hardware) independent code

4 次查看(过去 30 天)
Does anyone has experience generating platform independent code from simulink models?
We have the idea to generate one set of code from the models that is capable of runing on different hardware.

回答(1 个)

Ayush
Ayush 2024-1-2
To generate platform-independent code from Simulink models, you can use the code generation features provided by MATLAB and Simulink. The generated code can be ANSI-C code, which is platform-independent and can be compiled on different operating systems and hardware. In the Configuration Parameters dialog, under the Code Generation section for platform-independent ANSI-C code, you can choose grt.tlc (Generic Real-Time Target).
Thanks,
Ayush

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by