warning C4002: too many actual parameters for macro 'sfcnOutputs'
Show older comments
Hello,
I have a problem with the compilation of a simulink multirate model with an Amesim model, which is configurate to use multitasking. The code generation works fine but the c code seems to call sfcnOutputs with tid parameter of size 2 (I had only found an int for this parameter).
SimStruct *rts = B_Engine_Model_rtM->childSfunctions[0];
sfcnOutputs(rts, [0, 1]);
So, I get an C4002 error when the compilator use this code. I tried in singletask mode and it works perfect (the sfcnOutputs macro has a scalar in the second parameter instead of a vector).
Moreover, i use Matlab 2011b with Amerun 10SL1 and the ame_xpc_vc_matlab_2010b.tmf. Before, i used to work with Matlab2007b, Amerun8A et ame_xpc_vc_matlab_2006a.tmf and it worked perfect. I tried to use Amerun8A but with the same result or the 2006a tmf but i got an error while reading the tmf file.
I hope, I was clear in the explanations. Do you have any idea to solve that issu ?
Thanks a lot
Cyril
Answers (2)
Kaustubha Govind
on 26 Oct 2011
0 votes
Could you turn on code-to-model highlighting and see which block is generating this piece of code? If it's one of the Amesim blocks, you may need to contact the vendor to see if they can fix it.
Cyril
on 26 Oct 2011
0 votes
1 Comment
Kaustubha Govind
on 26 Oct 2011
Can you tell from the comments in the code which block the code is getting generated from? Perhaps you should report this to MathWorks Tech Support to see if this is a bug.
Categories
Find more on Simulink Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!