matlab function block Used for C code generation Error?
显示 更早的评论
matlab function block Used for C code generation with "Only one inport and one outport can share the same parameter name." Error?
I can't see any error when I open the report, but the "diagnostic viewer" shows an error, see the picture below, I don't know how to change it to pass? Thanks in advance!
My function signature is:
[ timeStampOut,pathFound,poseOutCurrentInGlobal] = routePlanningEntry( deltaX,deltaY,timeStampIn,imgGrayIn,xEgoInGloabalWorld,...
yEgoInGloabalWorld,thetaEgoInGloabalWorld,direction,laneIn,UltrosonicData)%#codegen

run in MATLAB 2021a
6 个评论
Walter Roberson
2022-3-9
编辑:Walter Roberson
2022-3-9
I wonder if you are encountering limitations on the length of variable names, under the speculation that maybe your model name is being used used as a prefix for the variable names? ANSI recognizes at least 31 characters in variable names.
If my speculation has any truth then of you rename your model to a short name then it might work.
xingxingcui
2022-3-9
编辑:xingxingcui
2022-3-9
Walter Roberson
2022-3-9
If you use the Port Manager for the MATLAB Function Block, then what does it show as the port names?
In my experience, if there was a mismatch between the name in the port manager and the code in the function signature, then when you update the model it would change the code to match the port manager.
xingxingcui
2022-3-9
Benjamin Thompson
2022-3-9
Can you post the model in question?
xingxingcui
2022-3-11
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!