Revolute Joints Block, State Tragets
6 ビュー (過去 30 日間)
古いコメントを表示
When I have a value for "Specify Position Target" and I run the simulation, I don't get the same value from the sensor. Any idea, how can I set the mechanism at a specific revolute joint angle?
1 件のコメント
Vasco Lenzi
2020 年 8 月 24 日
Are you using PS-Simulinkconverter to look at the angle? Or Simulink-PS converter to feed position to the joint? Are all of the SI units correctly handled between Simscape and Simulink (eg rad vs deg)?
Cheers
Vasco
採用された回答
Vasco Lenzi
2020 年 8 月 27 日
Closing the loop here. The main problem was the initial condition setting at different joint targets. You can check if a system initialized in the desired target by going to the Variable Viewer:

And then checking if the system could initialize correctly:

Usually relaxing some of the target leads to the system initalizing correctly.
1 件のコメント
Siti Abyad
2025 年 5 月 9 日
Hi, Im having a similar problem. but wierdly when I open variable viewer, the targets are not the same as that which i set on my simscape revolute joint, and the status is still green, and the priority level is set to none, and the target column is just empty, even though I haved filled in and checked the state targets section on each joint.. Is there a possible solution to this?
その他の回答 (1 件)
Ashraf Omran
2020 年 8 月 24 日
2 件のコメント
Vasco Lenzi
2020 年 8 月 24 日
Hi Ashraf
thanks for answering the questions.
feel free to attach the files on this topic. That may be best since more people may chime in to help
Vasco
参考
カテゴリ
Help Center および File Exchange で Assembly についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!