Error reported by S-function !!!

140 ビュー (過去 30 日間)
Swasti Khuntia
Swasti Khuntia 2013 年 10 月 17 日
回答済み: juli marquez 2020 年 8 月 10 日
Hi,
I'm trying to simulate a power system model which has a m-file embedded into it. And, when I simulate it, I get the below error
Error reported by S-function 'sf_sfun' in '......':
Error calling generated SFunction, **.
Undefined function '****' for input arguments of type 'double'.
P.S.: "......" and "****" are the corresponding file names. I went through some of the previous threads, but couldn't figure out my error.
Thanks for the help.

回答 (3 件)

Swasti Khuntia
Swasti Khuntia 2013 年 10 月 18 日
Any help? :)

Gerhard Feichtinger
Gerhard Feichtinger 2015 年 7 月 8 日
I know this is really late, but I am putting what I found here for googlers...
I just had the same error in 2015a, and it seems to be because I was setting the Simulink CodeGenFolder and CacheFolder parameters to nonstandard values. I'm not sure if there's a similar StateFlow value to set, but commenting out these lines from my setup file fixed the issue. So maybe it's something that you set up for Simulink that Stateflow is expecting in a different location?
% Simulink.fileGenControl('set', 'CacheFolder', [userpath '/_code_dummy_'], 'createDir', true)
% Simulink.fileGenControl('set', 'CodeGenFolder', [userpath '/_code_dummy_'], 'createDir', true)
  1 件のコメント
Poornima Pagadala
Poornima Pagadala 2019 年 11 月 13 日
when I am building the model, I too got one error i.e.,
Error reported by S-function 'SclXcp_Setup_sfun' in 'SwingEfence/Platform Configuration/SclXcp_Setup':
S-function parameter 4 must be a character string.
What it might be the reason ,can anyone help me out??

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


juli marquez
juli marquez 2020 年 8 月 10 日
if someone need to solve it... i just found that if you change the language in the control plant and also in the function of simulink (the same that you use to change the simulation from batch to interctive it works

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by