Why Matlab/Simulink can not find the S-Function file
조회 수: 6 (최근 30일)
이전 댓글 표시
I have a Simulink model with a user-defined S-Function block was built in MatlabR2010a, Windows x86 PC. This user-defined S-Function was written by C language. I want to run this model in a new release of MatlabR2015b, Windows10 x64 PC. Now I can open this model in MatlabR2015b but couldn't run it. When I run the model, it has an error "Error in S-function 'AAA/BBB/CCC/xxx': S-Function 'xxx' does not exist". Although the C source file of S-Function is in the same folder with the Simulink model file and I also have right click this S-Function block and in Function Block Parameters windows I then click Edit button, it still show C source file in Matlab Editor windows, but the model can not run. In this C source S-Function file, some Chinese characters in comments (after % character) are not show clearly in Chinese and I can't read these. Now I don't know how to solver this, please tell me how I have to do! Thank you very much!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!