What is position violation ?

조회 수: 16 (최근 30일)
Hamzah Al-madhagy
Hamzah Al-madhagy 2019년 6월 22일
댓글: MathWorks Simscape Team 2023년 6월 28일
Hello every one. I wish you all the best.
I've faced problem while using simscape multibody. Can any one help me, please?
I've built a simple mechanical rack and pinon mechanism using SOLIDWORKS and imported the model to MATLAB to design a control system. I made use of rack and pinon block as a constrain between the rack block and the pinon block. when I run the model it always appears an error message says " the model not assembled: position violation" but when I remove the rack and pinon block the model run well and no error message appears.
Does anybody know how to solve this problem?
A photo of the model is attached and a simulink file of the model is attached as well.sm model.JPG

답변 (1개)

Steve Miller
Steve Miller 2021년 6월 16일
Hi Hamzah,
The error message about not being able to assemble usually means that your model is kinematically impossible. One or more degrees of freedom are constrained in multiple, inconsistent ways. Usually, you have a frame that is not properly oriented or properly positioned.
You have done a good job identifying a block that likely close to the frame that is in the wrong position or orientation. If you look at the diagrams in the documentation for the Rack and Pinion Constraint block, you will see how the frames need to be oriented and positioned. Compare these to the two frames connected to your Rack and Pinion Constraint block, and you will see the change you need to make. I would have attempted it on the model you attached, but the parameter file is missing.
Thanks,
--Steve
  댓글 수: 2
cindy lemoine
cindy lemoine 2023년 6월 28일
Steve i have a similar problem using the bevel gear constraint, is there a way for me to upload my model so you can take a look at it?
MathWorks Simscape Team
MathWorks Simscape Team 2023년 6월 28일
Hi Cindy - create a new MATLAB Answers post and attach the model. Also, if you modify your MATLAB Answers profile and let people send you emails, I can respond directly to you.

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

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by