Revolute Joints Block, State Tragets
3 ビュー (過去 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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/352421/image.png)
And then checking if the system could initialize correctly:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/352424/image.png)
Usually relaxing some of the target leads to the system initalizing correctly.
0 件のコメント
その他の回答 (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 で Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!