フィルターのクリア

Standalone code generation is not supported for model

10 ビュー (過去 30 日間)
Nour
Nour 2023 年 11 月 28 日
回答済み: Fangjun Jiang 2023 年 12 月 11 日
Hello,
I have a subsystem that I converted to referenced model and when I tried to generate the code for the referenced model I get this error
Standalone code generation is not supported for model 'Component' because the model contains a root level control port 'Component/function'. The model must be referenced through a Model block to generate code.
my referenced model contains a trigger port.
Does anyone have any suggestions/ Workaround that could help me solve the issue ?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2023 年 12 月 11 日
It sounds like that you can't do standalone code generation on this "component model". You have to create another "main" model, use a "Model" block to reference this "component model" and then do code generation on the "main" model.

カテゴリ

Help Center および File ExchangeCreate Large-Scale Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by