Simulink の Simulink Function を複数インスタンスで使用する際にコード生成エラーが発生するのはなぜでしょうか?
古いコメントを表示
複数の Model Reference ブロックが同じ参照モデルを指す Simulink モデルでコード生成を行おうとしていますが、以下のようなエラーメッセージが表示されて困っています:
Error:
Model 'model_xxxxxxxx', which is not an Export Function model, may not generate reusable code because it contains scoped Simulink function 'f_rand_yyyyy' which generates reusable code. Ensure that the model 'model_xxxxxxx' is an Export Function model to generate reusable code or Consider setting the model configuration parameter 'Code interface packaging' to 'Nonreusable function' and 'Total number of instances allowed per top model' to 'One'.
Recommended actions:
Consider setting the model configuration parameter 'Code interface packaging' to 'Nonreusable function'.
Consider setting the model configuration parameter 'Total number of instances allowed per top model' to 'One'.
参照モデル内で Simulink Function を使用していることが、このエラーの原因と考えてよいでしょうか?
以下の MATLAB ドキュメントを参照しました:
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink Function についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!