Error when running SimMechanics model on Arduino Mega 2560

조회 수: 1 (최근 30일)
Maximilian
Maximilian 2013년 12월 18일
댓글: Steve 2015년 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