This function does not fully set the dimensions of output port 2 error in matlab?
古いコメントを表示
hi. I simulated impedance control for ur10.but there is an error:
Error in default port dimensions function of S-function 'impedance2/impedance controller'. This function does not fully set the dimensions of output port 2
I guess it the problem is with x signal. x is 1 if this is wrong. the signal should be 6,1 in ur10forwardkinematic block. I don't know where is output port2 exactly and how can I fix this problem? The Simulink file is attached.
採用された回答
その他の回答 (1 件)
Nicolas Schmit
2018 年 10 月 15 日
0 投票
Simulink is having a hard time determining the dimension of the outputs of the MATLAB Function blocks. The root cause is that you have many undefined variables in the code of the MATLAB function blocks. Because of those undefined variables, MATLAB cannot execute the code of the blocks and thus cannot determine the dimension of the outputs.
1 件のコメント
Prasath Lingan
2021 年 11 月 19 日
Yes, You are absolutely right. After deleting all the variables that are used but not defined, the issue is gone. Thanks.
カテゴリ
ヘルプ センター および File Exchange で Block and Blockset Authoring についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!