an error in real-time code generation on s-function model

i've implemented the model on s-function to download the controller on ti dsp(f2812),but when i want to build the project(i press incremental build on simulink window) i'm facing with an error: "*_Invalid parameters for S-function 'mpcdsp/MPCController/S-Function'. For Real-Time Workshop code generation, S-function parameters must be one or two dimensional nonsparse numeric or character arrays unless the S-function uses a TLC file and has an mdlRTW function_*BOLD TEXT*."

2 个评论

As the error message says "For Real-Time Workshop code generation, S-function parameters must be one or two dimensional nonsparse numeric or character arrays" - do you have one or more parameters that violate this requirement?
ok,the s-function model has 2 input and one output.but one of inputs include 10 parameters.input(1) is a constant set point and input(2) is output of the function that has 10 parameters.(function md=sol2 (in1,in2,...)
that md construct: md.1 ,md.2 ,... md.10)

请先登录,再进行评论。

回答(1 个)

类别

帮助中心File Exchange 中查找有关 System Configuration 的更多信息

提问:

2011-8-25

Community Treasure Hunt

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

Start Hunting!

Translated by