smimport('DoublePendulum.xml')and we have a model: Do what you came here for! At this point, you can combine any feature available in Simulink with your mechanism. For example, we can design a controller for the base joint using the automated PID Tuning capability of Simulink Control Design I modify the base joint to measure its position and apply a torque, and connect the PID block: After going through the auto tuning procedure, we can see the resulting motion: What if you’re not using SolidWorks? As mentionned previously, SimMechanics Link can also be used to interface with PTC Creo and Autodesk Inventor. If you are designing mechanical systems using a different CAD tool, I recommend looking at the MATLAB Central submission CAD to MATLAB to SimMechanics by my colleague Steve Miller. Using the technique in this submission it might be possible to write your own adapter to import assemblies from other CAD software without too much work. Now it's your turn Here is one more animation from the Stewart Platform example, just to highlight that pretty complex assemblies can be imported. Are you already importing CAD assemblies to SimMechanics? If yes, let us know what kind of analysis or design task you do with the assembly once in Simulink by leaving a comment here.
9 CommentsOldest to Newest
Very cool :) Is it possible to enable anti-aliasing in the Mechanics Explorer? Also, is it possible to drive the original model inside the CAD software from SimMechanics/Simulink?
Hi Guys, I fallow your blog allways and your blog is so usefull.
I want to ask something about biped robots. I want to export a biped robot solidworks to simmechanics. But I dont know what contacts must be given between foots and ground. and any other example I want to drive a wheel without slipping. If any model is fixed to ground it is easy but if it is not fixed like walking robot or rolling wheel how can we model them?
There are so many publications about these but none of them explain the contacts or they are just on pdf not any example files.
@Abdullah, Contact dynamics is a complex problem that can be solved in many ways, thepending on the level of accuracy you need. For examples, you can give a look at this post where I modeled a one-legged robot. The files cna be downloaded form MATLAB Central:
You can also look at my SimMechsnics rover, which implement a simple tire contact model:
I think my colleague Hitoshi Takeshita also has a good submission with a tire contact model:
@Eric: We are looking into anti-aliasing for the Mechanics Explorer, but this is not available as of R2014a. About the possibility to drive a CAD software from Simulink, this is probably something that could be done with a bit of work, but we do not have a “one-click” solution.
@Guy , Thank you so much for your usefull reply.. I will check the models that you said.
as MathWorks is suppporting Formula Student, we have created a video podcast some weeks ago that shows how to import data from different CAD tools.
Here you go: http://www.mathworks.com/videos/matlab-and-simulink-racing-lounge-cad-import-in-simmechanics-91819.html
Is it possible to model 3D body contacts (+ reaction forces) between different geometrical parts in SimScape?
@Christophe Lauwerys: I recommend looking at the following MATLAB Central submission, which provides basic functionalities to model contact dynamics:
Your blog is really helpful for me thank you for posting such interesting things
I am new to simulink and I’m buliding Hydraulic Excavator cad model in CREO 2.0 and wants to simulate the same using simulink along with interfacing with hydraulic circuit design (using simhydraulics) to get real time simulation will you help me to get proper documentation and reference because it’s my Masters Project I am doing my dissertation from India M.Tech in cad cam
Thanks in advance
waiting for your reply
Sagar M. Pohekar