Use a compiled Library .a extension in simulink
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
I have a compiled library file .a extension, I need to import this file into simulink and use it in my simulation activities. How can I use this file in simulink? I need to integrate it as a block in a big model?
Thank you in advance for your response.
Regards,
Ali ISSA
댓글 수: 0
답변 (1개)
Mark McBroom
2024년 4월 27일
You can use the C Caller block to call a function that exists in a library. You'll need the header file that defines the function prototype.
댓글 수: 3
Mark McBroom
2024년 6월 5일
You can look at the C file mentioned in the error message. Since the error is happening near the top of the file ( line 4), best guess is that you entered the name of the header file incorrectly in the custom code : Include Headers diaglog. You should enter something like: #include "myHeader.h"
Thanks.
Mark.
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!