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

3 次查看(过去 30 天)
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