S function does not exist

Hi,
I have just installed a new library for SIMULINK called 'Aerosim Blockset' on Windows 10. After installing succesfully, when I try to run the model, it gives me the following error: * Error in S-function 'aerosonde_trim/Aerosonde UAV (Euler-angle kinematics)/Earth/WMM-2000/S-Function': S-Function 'sfunwmm' does not exist*. I have made sure that the file sfunwmm.c exists in the directory, as well as the files with extensions .def,.dsp,.dsw. I would appreciate any help!!!

7 件のコメント

Walter Roberson
Walter Roberson 2015 年 12 月 7 日
編集済み: Walter Roberson 2015 年 12 月 7 日
Did you follow the installation instructions?
Also, which MATLAB version are you using with your Windows 10 system? If you are not using R2015b then you might have a fair bit of difficulty getting a compiler to work.
OLA ELHASSAN
OLA ELHASSAN 2015 年 12 月 7 日
編集済み: Walter Roberson 2015 年 12 月 7 日
Thank you for your answer Walter.
Yes, I did. I also remembered to change the path for the block which needs the wmm.cof file. I am using R2014b.
When I installed Matlab, i got the following message:
1. The following products require a supported compiler:
MATLAB Compiler 5.2
MATLAB Builder NE 4.2.2
MATLAB Builder JA 2.3.2
Simulink Coder 8.7
Simulink Real-Time 6.1
MATLAB Coder 2.7
So now, I just installed Windows 10 SDK since I read that "For the 64-bit Windows platform, a C compiler is not supplied with MATLAB." IF that doesn't work, I will try to download R2015b.
Walter Roberson
Walter Roberson 2015 年 12 月 7 日
Windows 10 SDK will not work with R2014b.
OLA ELHASSAN
OLA ELHASSAN 2015 年 12 月 7 日
Yes, it didn't work, I will let you know if everything works after i finish installing R2015b and re-installing Aerosim.
OLA ELHASSAN
OLA ELHASSAN 2015 年 12 月 7 日
I have finished installing R2015b and reinstalling Aerosim but I still get the same error. Could it be due to this message I recieved after installing:
Your installation may require additional configuration steps.
1. The following products require a supported compiler:
  • Simulink Coder 8.9
  • Simulink Real-Time 6.3
  • MATLAB Coder 3.0
2. MATLAB Compiler 6.1 requires a supported compiler for creation of Excel add-ins
3. MATLAB Compiler SDK 6.1 requires the following: * .NET framework for creation of .NET assemblies and deployable archives with Excel integration
  • a supported compiler for creation of COM components, C and C++ Shared libraries
  • a Java JDK for creation of Java packages
dream sun
dream sun 2020 年 2 月 17 日
I meet am error when runing a demo, such as "S-Function 'sfunwmm' does not existn". I need your help, can we have a contact, my emil is heastdream@hotmail.com
Moh Ebah
Moh Ebah 2020 年 10 月 23 日
編集済み: Moh Ebah 2020 年 10 月 23 日
1, install the aerosim in program file, instead of program files(x86)
2, compile the sfunction using mingw as https://www.mathworks.com/matlabcentral/answers/335824-s-function-does-not-exist
3 add src folder to matlab path using pathtool It will be solved in sha Allah I tried in 18b 64bit

サインインしてコメントする。

回答 (2 件)

OLA ELHASSAN
OLA ELHASSAN 2015 年 12 月 9 日

2 投票

I finally managed to get it to work by installing a 32 bit version of R2015b and then re-installing the Aerosim blockset. Everything is working, no more errors.

2 件のコメント

Islam Elnady
Islam Elnady 2017 年 2 月 22 日
Hi Ola, Can we contact? I'm working on Aerosim Blockset and I might need your help. Kindly!
Thank you, Islam
Abdalaziz Kabeel
Abdalaziz Kabeel 2023 年 10 月 8 日
I have the same error but in the (S-Function 'sfunflightgear092') i have tried to compile the cpp file of this function but it does not work
i would appreciate any help

サインインしてコメントする。

li zengyan
li zengyan 2015 年 12 月 29 日

0 投票

You are right, the aerosim block can only run in the 32 bit version of matlab, because of the "dll" files

カテゴリ

ヘルプ センター および File ExchangeProgrammatic Model Editing についてさらに検索

質問済み:

2015 年 12 月 7 日

コメント済み:

2023 年 10 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by