Error when running SimMechanics model on Arduino Mega 2560

1 次查看(过去 30 天)
Hello, I am trying to run a Simmechanics model on an Arduino Mega 2560 however I get the following error message:
The call to realtime_make_rtw_hook, during the after_make hook generated the following error: The specified file "C:\Program Files\MATLAB\R2013a\toolbox\physmod\mech\lib\win64\mech" does not exist on the path.
After looking at my MATLAB toolbox path I found that the "mech" folder is under the "lib" directory instead of "win64". I have tried moving the folder but it seems to move it back when restarting MATLAB. Does anyone know how to fix this issue?
Thanks!
EDIT I was able to move the mech folder under the win64 directory but now get the following error:
Error in 'SM_0001_000S_FULL/GROUND1/RootGround': Initialization commands cannot be evaluated.
Caused by: Error in 'SM_0001_000S_FULL/GROUND1/RootGround/_mech_engine': Initialization commands cannot be evaluated. Error while obtaining sizes from MEX S-function 'mech_engine' in '#1')">SM_0001_000S_FULL/GROUND1/RootGround/_mech_engine/Block#1</a>'. Internal Error: A primary message table for module 74 was already registered with a differing collection of error messages.
  1 个评论
Steve
Steve 2015-1-30
My comment may get removed but there is a way to use the arduino input to control movement of your solidworks model by using Labview instead of simmechanics. I say this just to help those who are in deep frustration like me.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by