Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize the Joint Simulation of MATLAB and SolidWorks

Shulou Source: shulou.com Published: 2022-06-01 16:53:17 11月15日 Update

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!

Tags: Run input simulation federation file version learning different two content tools plug-ins format environment directory selection consistent one line image above above Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Xiaomi Microsoft MySQL Shulou Information