Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the Joint Simulation of MATLAB and SolidWorks

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to realize the joint simulation of MATLAB and SolidWorks". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to realize the joint simulation of MATLAB and SolidWorks".

Download the plug-in.

After entering the website, you will have your own mailbox number (as shown in the first picture above) and choose to download according to your own MATLAB version, such as my MATLAB2016a, so choose r2016a to download. The name must be marked, otherwise, if you call him, he won't allow it.

After the download is complete, open MATLAB as an administrator and continue the operation under the download directory of the two files mentioned above (as shown in the figure below, you will see the two files you downloaded on the left of MATLAB), and then the command window of MATLAB does the following

Specifically,

Step one:

Type install_addon ('smlink.r2015a.win64.zip'). Note that the download and input version must be the same as your own MATLAB version. It may take some time to run, be sure to wait until it is finished before moving on to the next step

Step 2:

After the previous step is completed, the'> > 'flag will appear on the next line. Type regmatlabserver and enter enter.

Step 3:

Enter smlink_linksw and enter.

After the run is complete, the interface shown above appears. Complete after [confirmation].

At this point, the MATLAB environment is complete

Then we enter the SolidWorks environment. Similarly, we need to put the downloaded SolidWorks section mentioned at the beginning of this issue into the SolidWorks installation directory, re-open SolidWorks, [tools] → [plug-ins], different versions appear the following two different, the effect is the same.

Once checked, you can create a new part model in SolidWorks. After modeling, save the format as'* .prt;*.sldprt', assembly [tool] → [SimMechanics Link] or [Simscape Multibidy Link] → [Export] → [SimMechanics Link Second Generation] as a .xlm file for opening in MATLAB.

When finished in SolidWorks, go to MATLAB and enter smimport ('the name of the file you want to open must be in .xml format')

After the enter is completed, simulink is generated automatically.

Click "run simulink" to get the following running result

Thank you for your reading, the above is the content of "how to realize the joint simulation of MATLAB and SolidWorks". After the study of this article, I believe you have a deeper understanding of how to achieve the joint simulation of MATLAB and SolidWorks, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report