S-function does not exist error in Simulink MATLAB

조회 수: 66 (최근 30일)
MAYOWA OLADELE
MAYOWA OLADELE 2023년 1월 10일
댓글: Walter Roberson 2024년 11월 7일 23:01
I am trying to run a model in SImulink Matlab that uses both Matlab based S-function block (a .mexw32 file) and a C code based S-function block (a .c file). When I run the model, I get the error below:
I don't know why it keeps saying "It does not exist". The file is there, and it does exist. Someone should please help me out here. See the files in one folder below:
I also downloaded and installed MATLAB support for MinGW-w64 C/C++ Compiler to compile the C code so that it can be called from MATLAB using MEX. I'm still getting the same error despite doing this. I don't know what else to do.

답변 (1개)

Aditya Jha
Aditya Jha 2023년 1월 17일
Hi!
Simulink needs the s-function to be compiled into a mexw64.Please find the below MATLAB answers post with similar query: https://www.mathworks.com/matlabcentral/answers/735042-s-function-does-not-exist-but-is-clearly-in-the-matlab-path
  댓글 수: 3
Muhammad Auwal
Muhammad Auwal 2024년 11월 7일 22:37
Hi Mayola, how did you go about this problem?
Walter Roberson
Walter Roberson 2024년 11월 7일 23:01
.mexw32 is for 32 bit Windows. MATLAB has not supported 32 bit Windows since R2015b.

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

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by