Error using smimport_implementation

조회 수: 18 (최근 30일)
Morris Chung
Morris Chung 2016년 6월 3일
댓글: Yuhao Zhou 2020년 6월 19일
I am trying to import an example model in simulink. The command line is:
smimport('sm_robot');
However, this error is returned:
Error using smimport_implementation Workspace for block diagram 'sm_robot' was not loaded because an error occurred while loading the MATLAB-file 'C:\Program Files\MATLAB\R2016a\toolbox\physmod\sm\smdemos\import\robot\sm_robot_DataFile.m'.
I searched, and the sm_robot_DataFile.m is no where to be found.
Is there a fresh download available or maybe I am not importing correctly?
Thanks in advance.
  댓글 수: 5
Alain McGregor
Alain McGregor 2019년 5월 2일
did u ever work out what happened ?
Yuhao Zhou
Yuhao Zhou 2020년 6월 19일
  1. create another new folder out of matlab application,
  2. move all the cad files into the new folder,
  3. then use 'cd' to change the path into that folder.
  4. do the 'smimport' again.
It works for me.

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

답변 (1개)

Xianjin Zhu
Xianjin Zhu 2019년 3월 30일
same problem.
add file path to matlab
the datafile.m

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by