SIL using model reference

10 ビュー (過去 30 日間)
Swanand Pisat
Swanand Pisat 2020 年 2 月 14 日
コメント済み: Fangjun Jiang 2020 年 2 月 17 日
ModelReference in SIL Mode
I want to understand the difference between thsese two 'code interface' options.
What difference it makes in each(Model Reference, Top Model) of the option shown and what is recommended option for perticular application?
I have gone through the 'Help' literature but it did not elaborate in detail which I need.
Can anyone help?

採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 2 月 14 日
I thought the document was clear.
To deploy the generated code as part of a larger application that uses the referenced model, specify Model reference. To deploy the generated code as a standalone application, specify Top model.
  2 件のコメント
Swanand Pisat
Swanand Pisat 2020 年 2 月 17 日
My question further to this is then
what difference does it make in the code generation? because i see even the code generation folder changes, colde generation file changes. why so much difference?
Little more elaboration is needed.
Fangjun Jiang
Fangjun Jiang 2020 年 2 月 17 日
It mostly involves shared files such as header files and data files. If you have a top level model and one or more referenced models, certain header files don't need to be generated for every model. They can be put in a shared folder. But if one of the referenced models is intended to be used somewhere elase separately and alone, all those header files need to be generated.
There is a use case where a top level model includes many referenced models and has been proved out. The user might want to generate code for all the referenced models in one shot and all the referenced models are intended to be used separately. That is when "Top model" is selected. Otherwise, if you just want to be able to run your whole model simulation in SIL mode, use "Model reference".

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by