Simulink auto-code language setting for models with reference model within them.

2 ビュー (過去 30 日間)
Ishan Banerjee
Ishan Banerjee 2022 年 7 月 1 日
回答済み: Manikanta Aditya 2024 年 1 月 9 日
So I have a matlab model which has two other models inside them. I want to autocode in such a way that one of the module gets auto coded in plain C++ and the other model gets auto codded in CUDA. Is this even possible?

回答 (1 件)

Manikanta Aditya
Manikanta Aditya 2024 年 1 月 9 日
この 回答 は Michal さんによってフラグが設定されました
Hi Ishan,
As per my understanding, you have a MATLAB model which has two other models inside the main model. You would like to auto code in such a way that one of the modules gets auto coded in plain C++ and the other models gets auto coded in CUDA.
MathWorks provides several products for code generation from MATLAB and Simulink models. You can generate optimized C, C++, CUDA, Verilog and VHDL that compiles with standards. You can partition the model and use the available resources to generate the codes respectively.
For Generating C++ code, you can use MATLAB Coder and Simulink Coder, it allows you to automatically generate C and C++ code from MATLAB Code:
For Generating CUDA code, you can use GPU Coder, it generates optimized CUDA code from Simulink models containing MATLAB Function blocks.
Please refer to the following reference to know more about:
I hope this resolves the issue you were facing.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by