필터 지우기
필터 지우기

SimMechanics Link Problem

조회 수: 63 (최근 30일)
Mohamed Trabia
Mohamed Trabia 2012년 1월 6일
댓글: MD Tanvir 2024년 7월 4일 19:45
I am trying to import a Solidowrks assembly into simMechanics. I followed all the steps as in the web site. I have the pull-down menu SinMechanics Link in SolidWorks. When I try to save the assembly in the xml format, I get this error:
Could not start MATLAB. Check your MATLAB installation. Consult documentation to identify possible causes of failure.
I get this error regarding Matlab is open or not.
Note: I am using Matlab 2010a and SolidWorks 2010
  댓글 수: 9
Shqiprim Selmani
Shqiprim Selmani 2022년 12월 14일
I am having the same issue here. Did anyone solve this?
MD Tanvir
MD Tanvir 2024년 7월 4일 19:45
me too

댓글을 달려면 로그인하십시오.

채택된 답변

Alexandre Willame
Alexandre Willame 2014년 5월 27일
편집: Alexandre Willame 2015년 2월 28일
Instructions can be found here. First download the Simmechanics Link. Then:
- Install matlab and solidworks on same drive (ex: C: or D:).
- Right-click on the MATLAB icon, and selecting "Run as Administrator"
- Write the command
install_addon('smlink.r2014a.win64.zip')
(adapt the name of the version to your version, here r2014a ) when on the same directory as the two downloaded files.
- Type the following commands one after another:
smlink_linksw
regmatlabserver
- At that point you should be able to enable the SimMechanics plugin in Solidworks with these instructions.
  댓글 수: 8
Margarita Berrio
Margarita Berrio 2021년 7월 28일
Thank men, you are the best...<3
Deepak Bharadwaj
Deepak Bharadwaj 2021년 10월 25일
what about macos

댓글을 달려면 로그인하십시오.

추가 답변 (6개)

Lorenzo De Finis
Lorenzo De Finis 2022년 8월 15일
For those of you who are getting this issue when connecting MATLAB with sim mechanics link:
>> install_addon('smlink-r2022a-win64.zip')
Installing smlink-r2022a-win64...
Error using install_addon
Archive architecture () does not match the MATLAB architecture (win64).
Installation of smlink-r2022a-win64 failed.
Answer:
When you download the zip folder shown on the download page as "smlink.r2022a.win64.zip" it will download with the name "smlink-r2022a-win64.zip". Notice the "." are replaced with dash marks. When using install_addon("zip_file.zip"), it does not work with using dash marks in the name of the zip file. I replaced the dashed marks with periods (".") and then used the command install_addon and it worked:
  댓글 수: 1
Fernando
Fernando 2022년 8월 23일
eres un DIOS MUCHAS GRACIAS

댓글을 달려면 로그인하십시오.


Sergio
Sergio 2012년 11월 10일
Hi Mohamed, Could you solve this problem? Because I have the same issue, I am working with MATLAB R2011a and SolidWorks 2011 I have tried connect MATLAB as an Automation Server using these ways:
Writing in system command matlab -regserver Writing regmatlabserver in MATLAB command line Writing enableservice('AutomationServer',true) in MATLAB command line
And when I try to export model this message remains
Thanks for your answer
  댓글 수: 2
tiff
tiff 2016년 4월 22일
Hi, I'm here because I got the same error. I don't know what caused yours but my problem was I installed 3 version of Matlab and all have simmechanics installed on.
So this is what I did to get it solved and hope this helps for who runs into the same problem.
- run matlab as administrator, on command prompt type smlink_unlinkinv (since i'm using inventor) as it's told http://www.mathworks.com/help/physmod/smlink/ref/register-simmechanics-link-with-solidworks.html
Making sure the unlink works, I checked on inventor the adds-in is gone.
- run matlab as administrator again re-install, re-register, and re-enable the CAD plug-in. And again I open the inventor, the adds-in is now there.
Last, I attempt to export some .iam file, this time it works. I think that there might be a problem with matlab automation server that handles the interfacing because of the multiple installations... or else I don't know for sure.
regards,
Tu Tran
Tu Tran 2018년 8월 5일
hi! i using solidworks 2010 and i'm facing same problem. Could you fix it? thank you!

댓글을 달려면 로그인하십시오.


Koray ÇALIK
Koray ÇALIK 2019년 10월 13일
I am using Solidworks 2019 and matlab version R2019b.I can't activate Solidworks plugin.When i write smlink_linksw command,i am getting RegSvr32 error.
I tried almost every thing.I couldn't solve.
Do you have any solution?
regards,
  댓글 수: 1
Andres Osorio
Andres Osorio 2019년 10월 14일
I am getting the same problem. I get the RegSvr32 message that says:
"Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DDL files
The pecified module could not be found."
Please help
Thank you,

댓글을 달려면 로그인하십시오.


Taeho Jang
Taeho Jang 2014년 4월 22일
Install matlab and solidworks on same drive(ex: C: or D:).
Then, right-click on the MATLAB icon, and selecting "Run as Administrator"
and then write te command install_addon('smlink.r2010a.win64.zip')....

HeeSung
HeeSung 2016년 5월 2일
To. Alexandre Willame
Thank you for your help.
I solve the problem. Thank you.

Raska
Raska 2017년 5월 10일
I'm using solidworks 2012, my computer is 32bit, matlab 2015b
i have followed the instruction 3 times, but the link doesn't appear in solidworks 2012
is it possible to have simmechanics link in solidworks 2012, but the matlab that i use is matlab 2015b

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by