how to import the C code generated by simulink into ccs?

Please tell me how to import the C code generated by simulink into ccs? I am importing the folder directly, and the files in the folder are not visible. Thank you!

댓글 수: 1

Are you able to solve this issue, if so please let me know your assistance helps a lot
Thank you!

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

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 6월 25일

0 개 추천

Hello chaozhen,
If you export a c shard library with matlab code like this example: https://www.mathworks.com/help/compiler_sdk/gs/create-a-c-application-with-matlab-code.html, then from the ccs side, you need to do the followings:
  1. Figure out how to include the folder into the search path for header files.
  2. Figure out how to link the shared library (a dll on Windows platform) into your ccs project
Thanks,
Yongjian

댓글 수: 1

Hello Sir,
I am facing the same issue and I have included all the files manually(.c and .h) even though it didnt work and is there any way to import directly, or any specific set of instructions to follow.
please help me with this. Thank you

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

카테고리

제품

릴리스

R2021a

태그

질문:

2021년 6월 24일

댓글:

2025년 1월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by