Error using smimport_implementation

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 件のコメント

ahmed khaled
ahmed khaled 2017 年 1 月 3 日
same problem
Matthew Vyletel
Matthew Vyletel 2017 年 7 月 3 日
I had it working.. Now I Have the same issue:/
Matthew Vyletel
Matthew Vyletel 2017 年 7 月 3 日
Fixed! Search "matlab cd syntax" on google, it'll walk you through it.
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 日

1 投票

same problem.
add file path to matlab
the datafile.m

カテゴリ

ヘルプ センター および File ExchangeDownloads についてさらに検索

製品

質問済み:

2016 年 6 月 3 日

コメント済み:

2020 年 6 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by