フィルターのクリア

Code generating for SIL Block

11 ビュー (過去 30 日間)
Duc Hai Nguyen
Duc Hai Nguyen 2023 年 6 月 16 日
回答済み: Ayush 2024 年 1 月 5 日
Hi guys,
i want to ask about the SIL/PIL-Simulation.
I'm trying to learn about the Matlab/Simulink Coder right now. I tried to generate code for the Model "SIL Block" with a SIL Block in it from Mathwork, but it didn't work.
Is it actually possible to generate Code for this Model with Simulink Coder?
Thanks
  1 件のコメント
Lakshya
Lakshya 2023 年 6 月 17 日
Can you attach the SILBlock simulink model file.

サインインしてコメントする。

回答 (1 件)

Ayush
Ayush 2024 年 1 月 5 日
Hi Duc,
I understand that you want to learn about the MATLAB/Simulink Coder and its possibility to generate code for a SIL Block.
Based on the screenshot provided for the error message, it clearly states that the simulation modes “Normal” and “Accelerated” are supported for the top-model only for a model which contains SIL block. But in your model screenshot, the SIL block is inside a subsystem i.e. Controller(SIL) which is not the top-model i.e. SILBlock.
SIL block simulations also come with certain limitations when it comes to code generation. Please refer to the below documentation to know more about these limitations to better understand the code generation process for SIL models:
Additionally, you can learn more about how to configure and run SIL simulation by referring to the documentation below:
Hope it helps,
Regards,
Ayush Misra

カテゴリ

Help Center および File ExchangeTest Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by