Why do I receive an error in my Simulink S-function when I compile it using the MCC command provided by the MATLAB Compiler 3.0 (R13)?

4 次查看(过去 30 天)
I receive the following error when I try to compile my Simulink S-function using the MCC -S command provided by the MATLAB Compiler 3.0 (R13):
S-function parameter count mismatch - S-function <filename> in block <blockname> is expecting 0 parameters while 3 were provided in the block dialog box.

采纳的回答

MathWorks Support Team
This error occurs due to a limitation of the MCC command with the '-S' option. The 'MCC -S' option does not support passing parameters through the S-function, which is normally available in Simulink S-functions. Hence, the error message reports that the S-function expects 0 parameters, while you are actually passing 3 parameters to the S-function.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by