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
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
Vasco Lenzi 2020년 8월 27일

0 개 추천

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
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
Ashraf Omran 2020년 8월 24일

0 개 추천

Hi Vasco,
Thanks for your reply. Here are my answers:
Are you using PS-Simulinkconverter to look at the angle?
Yes
Or Simulink-PS converter to feed position to the joint?
I don't use it as actuator. I use "Properties/statetraget/position/value". Please see the attached fig 1.
Are all of the SI units correctly handled between Simscape and Simulink (eg rad vs deg)?
Yes
I can send my file to you over the email. Please let me know.
Thanks,
Ashraf

댓글 수: 2

Vasco Lenzi
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
Ashraf Omran
Ashraf Omran 2020년 8월 24일
Hi Vasco,
I can not share my file on this website for public. It is a confidential material. I can send you the file over the email or I can call the technical support to help me with this issue. Please let me know.
Thanks,
Ashraf

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simscape Multibody에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 8월 18일

댓글:

2025년 5월 9일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by