MEX level2 S-function "sfunc_basic" must be called with at least 4 right hand arguments

Can any one please explain me what does this error mean. I tried to google it but could not find anything relevant. I get this while running the Simulink(mexing the file does not throw any error).

1 件のコメント

Sebastian Dietz
Sebastian Dietz 2015 年 12 月 16 日
I got the same error, when I try to generate a .tlc-file for my C S-Function. I need the .tlc, because I use a selfwritten S-Function for TCP-communication on a RasPi and when I try to deploy it to the Hardware I got an error, that my SFcn has to be inlined.
Any solutions?

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

 採用された回答

Kaustubha Govind
Kaustubha Govind 2013 年 9 月 16 日

0 投票

I suspect you are mistakenly using the S-function block for a Level-2 S-function, or a Level-2 MATLAB S-Function block for a Level-1 S-function. Try switching to the other block and see if the error goes away.

2 件のコメント

Priyanka
Priyanka 2013 年 9 月 17 日
Thank you for the reply. I noticed that, "reader-2", this kind of naming does not work.
Dana Schwanke
Dana Schwanke 2024 年 10 月 4 日
編集済み: Dana Schwanke 2024 年 10 月 7 日
I am getting this error whenever I try to open the Embedded Coder Dictionary. I have even removed the Embedded Coder Dictionary from my model's Data Dictionary and made a new one, and I still get the error. I am not sure what is causing the error.
EDIT: I found the error. Seems someone made an S-Function in the MATLAB path whose name conflicted with a built-in MATLAB function.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

質問済み:

2013 年 9 月 16 日

編集済み:

2024 年 10 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by