Speedgoat IO601 block s-functions

조회 수: 3 (최근 30일)
Birdman
Birdman 2017년 10월 13일
댓글: Birdman 2017년 10월 18일
When the code is generated from Speedgoat IO601 blocks, the generated code can not be inlined and from Configuration Parameters, Support non-inlined s-function check have to be made and this results in highly inefficient code. How those s-functions underlying those blocks can be inlined? Is there any other way beside inlining those s-functions and make the code more efficient?

채택된 답변

Diego Kuratli
Diego Kuratli 2017년 10월 17일
The Support non-inlined s-function option appears for ERT-based targets. This is not related to the IO601 drivers, but generally to the Simulink Real-Time environment.
By default, SLRT uses Tunable parameters, as tuning parameters is one of the main purpose of real-time testing. You can optimize the generated code, by selectively inline parameters: Configuration Parameters -> Optimization -> Signals and Parameters.
  댓글 수: 3
Diego Kuratli
Diego Kuratli 2017년 10월 18일
SLRT is not an ERT-based target. The slrtert.tlc system target file has been removed in recent MATLAB releases. Your concerns about the heavy generated code typically do not apply to the SLRT environment. I suggest you getting in touch with our technical support team for further discussing your specific requirements.
Birdman
Birdman 2017년 10월 18일
Thank you Diego. I think I got it at the moment.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by