How to add Common gear to a Simulink Multibody imported from Solidworks?

조회 수: 3 (최근 30일)
Daniel Sweeney
Daniel Sweeney 2018년 3월 21일
댓글: Usman Saleem 2020년 9월 4일
Modeled a SCORBOT in Solidworks for a class I am taking, was able to import into Simulink with no issues. Trying to connect the gears that cause main body of robot to rotate around base. Connected the 'common gear' block several different ways between the two spur gears, but continue to get: "['Robot_with_Gear']: Following errors were found in the model Robot_with_Gear. Caused by: ['Robot_with_Gear']: * Model not assembled: position violation * Resolve this issue in order to simulate the model.
The files attached are of the assembly after importing to simulink, one before adding the 'common gear' block and one for after.

답변 (1개)

Nicolas Schmit
Nicolas Schmit 2018년 3월 23일
The port F of the common gear constraint should be connected to the port B (not F) of Revolute1. Connecting the common gear constraint to the port F of Revolute1 jams your mechanism because the port F is rigidly connected to the base. Also, check that the xy planes of the two reference frames connected by the common gear constraint are coplanar.
  댓글 수: 2
Daniel Sweeney
Daniel Sweeney 2018년 3월 23일
Thanks for your assistance, I attempted the fix you suggested. By changing Port F of the common gear to connect to Port F of Revolute1 I received a different error:
"['Robot_with_Gear/Revolute'] : High priority velocity target +33 (deg/s) not achieved; actual value: +0 (deg/s) You can configure this diagnostic in the Simscape Multibody Configuration Parameters dialog. Component:Simulink | Category:Model warning ['Robot_with_Gear']: Following errors were found in the model Robot_with_Gear. Caused by: ['Robot_with_Gear']: Common Gear Constraint Common_Gear_Constraint has base and follower ports that are rigidly connected. You can configure this diagnostic in the Simscape Multibody Configuration Parameters dialog. ['Robot_with_Gear']: * Model not assembled: position violation * Resolve this issue in order to simulate the model."
I also re-assembled the model to ensure the two gears where co-planar. Then connected the common gear both like I originally had it and the way you suggest but still get the "position violation" error both ways. any other suggestion will be greatly appreciated.
Usman Saleem
Usman Saleem 2020년 9월 4일
Hey, I was designing a mechanism and came across the same error. No matter where I attach the gear constraint, simulink gives me the same error. Should I make a separate question? I was wondering if you figured it out somehow?

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by