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 Kommentare

Jaime Jaimes
Jaime Jaimes am 17 Sep. 2015
I have the same problem. could you fix it?
dinh nam
dinh nam am 21 Nov. 2016
me to, anybody already fixed it, help me please :)
kun he
kun he am 2 Aug. 2017
me to,do you have fixed?thank you!
yibo liao
yibo liao am 14 Apr. 2019
metoo
yayun liu
yayun liu am 1 Jan. 2020
me too
Segfred Frenz Navarro
Segfred Frenz Navarro am 3 Apr. 2022
me too :(
LUCA RUTIGLIANO
LUCA RUTIGLIANO am 10 Apr. 2022
I've the exact same problem, I'm using MATLAB 2021a and SOLIDWORKS 2017. Did any of you guys manage to solve this problem?
Shqiprim Selmani
Shqiprim Selmani am 14 Dez. 2022
I am having the same issue here. Did anyone solve this?
MD Tanvir
MD Tanvir am 4 Jul. 2024
me too

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Alexandre Willame
Alexandre Willame am 27 Mai 2014
Bearbeitet: Alexandre Willame am 28 Feb. 2015

7 Stimmen

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.

9 Kommentare

Marcelin
Marcelin am 27 Nov. 2014
thank u so much. It helped me to solve the same problem I got
Ali Vurgun
Ali Vurgun am 9 Feb. 2015
Thank you so much.
Nursefa Zengin
Nursefa Zengin am 27 Feb. 2015
The link 'these instructions' is broken. Could u add this link again,please.
Alexandre Willame
Alexandre Willame am 28 Feb. 2015
Thank you for your comment Nursefa, I updated the link.
Mohammad reza Nejati
Mohammad reza Nejati am 1 Feb. 2018
my problem solved when I did regmatlabserver. Thanks
Muhammad Ali
Muhammad Ali am 1 Sep. 2020
my issues resolved thanks
Margarita Berrio
Margarita Berrio am 28 Jul. 2021
Thank men, you are the best...<3
Deepak Bharadwaj
Deepak Bharadwaj am 25 Okt. 2021
what about macos
N/A
N/A am 2 Apr. 2025
what happen if i install matlab in D: and soliworks in C: ? I have the same error

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (6)

Lorenzo De Finis
Lorenzo De Finis am 15 Aug. 2022

4 Stimmen

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:
Sergio
Sergio am 10 Nov. 2012

1 Stimme

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 Kommentare

tiff
tiff am 22 Apr. 2016
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 am 5 Aug. 2018
hi! i using solidworks 2010 and i'm facing same problem. Could you fix it? thank you!

Melden Sie sich an, um zu kommentieren.

Koray ÇALIK
Koray ÇALIK am 13 Okt. 2019

1 Stimme

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 Kommentar

Andres Osorio
Andres Osorio am 14 Okt. 2019
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,

Melden Sie sich an, um zu kommentieren.

Taeho Jang
Taeho Jang am 22 Apr. 2014

0 Stimmen

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 am 2 Mai 2016

0 Stimmen

To. Alexandre Willame
Thank you for your help.
I solve the problem. Thank you.
Raska
Raska am 10 Mai 2017

0 Stimmen

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

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by