'C Caller block is not recognizing the c program

조회 수: 47 (최근 30일)
Besme James
Besme James 2022년 2월 2일
댓글: Lucian 2023년 5월 3일
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. ''
But error still remains.
Can somebody help me?

답변 (1개)

Pravarthana P
Pravarthana P 2022년 2월 17일
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:
To use the input variables from the custom code inside Simulink.
The following documentation may be helpful:
  댓글 수: 2
Besme James
Besme James 2022년 2월 21일
Thankyou :) I checked with all those parameters but the error stays.
Lucian
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by