How do I fix Simulink.DataType object not in scope while using c caller?
Mostrar comentarios más antiguos
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 comentarios
Raghava S N
el 8 de Ag. de 2024
Hi @AKHILA, could you share the Simulink model you are working with? That would help in debugging your issue.
David Balbuena
el 8 de Ag. de 2024
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Integrate C Code Using C Caller Blocks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!