Simulink の Simulink Function を複数インスタンスで使用する際にコード生成エラーが発生するのはなぜでしょうか?
Mostra commenti meno recenti
複数の 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 ドキュメントを参照しました:
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink Function in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!