'C Caller block is not recognizing the c program
显示 更早的评论
Eventhough i have specified the header and c file in the c caller block the simulink gives an erreoe as follows:
''C Caller block 'clib/C Caller' has not specified a function to call, or the specified function 'input' does not exist. ''
I followed the exact steps as in Integrate C Code Using C Caller Blocks - MATLAB & Simulink - MathWorks Deutschland
But error still remains.
Can somebody help me?
回答(1 个)
Pravarthana P
2022-2-17
0 个投票
Hi Besme James, from your query it can be taken that you are trying to use C caller block to call your pre-defined C program. From the statements I assume you have added the header files, source codes in the Configuration parameters -> Simulation target. Ensure that you have enabled both:
- Import custom code
- Enable global variables as function interfaces
To use the input variables from the custom code inside Simulink.
The following documentation may be helpful:
2 个评论
Besme James
2022-2-21
Lucian
2023-5-3
It might be a stupid idea but you could get a similar behavior when you have no valid mex compiler installed
Check in Matlab that you have MinGW addon or something similar
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Support for MinGW-w64 C/C++ Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!