I want to generate code from a Simulink model that contains an S-Function. It tells me that this is not supported. What's the best way to work around this?

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2020년 8월 3일

0 개 추천

Generating code from S-Functions became supported after release R2019a, so if you are able to upgrade to a more recent version, that would be the best work-around. However, you can also inline the S-Function, and that should allow Simulink to generate code for that model.
You can find more information here in the documentation: https://www.mathworks.com/help/rtw/tlc/inlining-s-functions.html?s_tid=srchtitle

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by