How do I fix Simulink.DataType object not in scope while using c caller?
古いコメントを表示
I am using c caller and function used in that is pid controller. While simulating that its showing error like "Unable to resolve 'PID_vars' to a valid type for input port 0 of 'pidexmpl/C Caller'.
Caused by:
Simulink.DataType object 'PID_vars' is not in scope from 'pidexmpl/C Caller'". Can someone tell me how to resolve this error?
2 件のコメント
Raghava S N
2024 年 8 月 8 日
Hi @AKHILA, could you share the Simulink model you are working with? That would help in debugging your issue.
David Balbuena
2024 年 8 月 8 日
What is PID_vars? Is it a type defined in your external code? If so, you need to represent that in Simulink. The Simulink.importExternalCTypes function can help import that type for Simulink.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Integrate C Code Using C Caller Blocks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!