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 件のコメント

Kaustubha Govind
Kaustubha Govind 2011 年 8 月 25 日
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?
sherim
sherim 2011 年 8 月 28 日
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 件)

Florin
Florin 2011 年 10 月 24 日

0 投票

you found a solution to this problem?

カテゴリ

質問済み:

2011 年 8 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by