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개)

Florin
Florin 2011년 10월 24일

0 개 추천

you found a solution to this problem?

카테고리

도움말 센터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