Error in S-funtion. S-function "Test" does not exist

Could anyone help me out?
Im getting this error while running my simulink model and I dont know why :/
Error in S-function 'untitled/Test ': S-Function 'SPI' does not exist

댓글 수: 1

Hello,
Before lunching the Simulation or the compilation, you have to compile the C code firstly. For examle, I have a C file nammed test.c that contain the description of my algorithm. And I call the function in the S-Function. I put the "test" name in the S-function name in Simulink. Before we run or execute the simulink, I compile the C code with this syntax in the matlab command mex test.c to create the Mex File. And then, we run the Simulink. I don't have any error about the existing of the function. Be sure your the path of your s-function is setted in the Matlab Path.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Block Authoring and Simulation Integration에 대해 자세히 알아보기

태그

질문:

2014년 8월 7일

댓글:

2015년 4월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by