Generating code from simulink

I've been trying to generate code from a simulink model. It keeps giving me the "too many input arguments" error. I'd appreciate any help. Thanks.

댓글 수: 8

Babak
Babak 2012년 11월 26일
what is in your model?
Kaustubha Govind
Kaustubha Govind 2012년 11월 26일
Please also paste the exact error message.
Tolutola
Tolutola 2012년 11월 26일
Its a model of a bioelectrochemical system - nothing complex, just a large set of differential algebraic nonlinear equations.
The error reads, "Too many input arguments"
Walter Roberson
Walter Roberson 2012년 11월 26일
How are you triggering the error message?
Do you have Simulink Coder installed?
Kaustubha Govind
Kaustubha Govind 2012년 11월 26일
Tolutola: I was hoping there was more to the error message, like a stack trace. Could you maybe attach a snapshot of the error. (See Where can I upload images and files for use on MATLAB Answers?)
Kaustubha Govind
Kaustubha Govind 2012년 11월 26일
Also, I am assuming that you are able to simulate the model, correct?
Tolutola
Tolutola 2012년 11월 26일
The model works perfectly well in simulink. I want to generate code so I can use it in place of the visual model.
Ryan G
Ryan G 2012년 11월 26일
What is the process you are using to build the model? For example, I could build a model in the configuration parameters (build button), CTRL-B or do RTWBUILD in the MATLAB command window.

댓글을 달려면 로그인하십시오.

답변 (1개)

Babak
Babak 2012년 11월 26일

0 개 추천

Which target are you generating code for? (grt or ...?)
You might want to reduce the model by removing the blocks and signals one by one (if possible) and generate code so that this way you can hopefully figure out which block is it that is giving you this error message.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2012년 11월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by