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

15 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Nicolas Schmit
Nicolas Schmit il 23 Mar 2018
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 Commenti
Daniel Sweeney
Daniel Sweeney il 23 Mar 2018
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 il 4 Set 2020
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?

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by