"Unknown option specified with the generic function of S-function" error when running MEX file in simulink
5 次查看(过去 30 天)
显示 更早的评论
Hi,
I've received some files from another user but can't get the simulink model to run.
The problem is in an s-function block which calls a MEXW32 file. I DON'T have the source file, just the mex.
When I attempt to run the model (or even the block on its own) the error
"Unknown option specified with the generic function of S-function 'model_sf' in 'model_sfcn' "
the same number of times as the number of inputs + outputs, where model_sf is the name of the mex file and model_sfcn is the name of the s-function block.
There are three different s-function blocks in the model (none of which have source files), all of which give the same errors, again the same number of times as inputs + outputs.
Is this a problem only solvable by editing the source file? Or does the source file need to be in the directory anyway for it all to run?
Thanks in advance
Henry
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!