Why Matlab/Simulink can not find the S-Function file
5 ビュー (過去 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!