Compile Model Reference with S-function & TLC
이전 댓글 표시
I have a working S-function that I can mex for use in normal mode and a TLC file that successfully compiles and runs in accelerator mode. However, when trying to use the S-function in an accelerated reference model or a standalone model in rapid accelerator mode, compilation fails. The errors started with redefinition errors, mainly in "matrix.h" vs. "rt_matrix". If I force the use of strictly matrix.h, the compiler seems to not know of the "bool" type in the files "slMdlrefSfcnBridge.h" and "matrix.h", as it complains about syntax errors (like "missing ')' before identifier"). Has anyone encounter these errors before, and is there a workaround?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!