필터 지우기
필터 지우기

S-function build with simulink real time

조회 수: 5 (최근 30일)
Enzo Yacometti
Enzo Yacometti 2024년 2월 29일
댓글: Andreas Goser 2024년 3월 1일
Hello I have my Simulink model which compiles perfectly with SLRT for speedgoat machine. Now when I try to add an S-function block (developed by a third party using Simulink Coder), the build returns: “The make command returned an error of 2”. Is this approach compatible with SLRT? Do I have to configure it in a particular way to make it work? Thanks.

답변 (1개)

Andreas Goser
Andreas Goser 2024년 3월 1일
This error may be related to an unsupported release to compiler combination. Please verify https://www.mathworks.com/support/requirements/previous-releases.html for the release your are using.
  댓글 수: 2
Enzo Yacometti
Enzo Yacometti 2024년 3월 1일
편집: Enzo Yacometti 2024년 3월 1일
The sfunc was compiled with Matlab 2015b using Microsoft Windows SDK 7.1 (C) while I’m using Matlab 2023a (without any compiler), is it compatible? It’s not clear to me from the link above.
Andreas Goser
Andreas Goser 2024년 3월 1일
In case you plan to run a Simulink simulation with R2023a and inlude a C-MEX S-Function from a project partner, please make sure the S-Function was created by the project partner using R2023a. In case you have the source code, you can create the S-Function yourself.
In your intial question, you mention a Simulink Real-Time application. Thus, there might be a different problem, but to isolate it, I still recommend using an S-Function created in the same release you are using.

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

카테고리

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by