I am getting a error code while opening a .mdl file

12 ビュー (過去 30 日間)
Varun Nair
Varun Nair 2021 年 7 月 14 日
コメント済み: Varun Nair 2021 年 7 月 16 日
I am getting a error message while opening a .mdl file which says:
XYX.mdl not a valid simulink model file name and to check save_system documentation.
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 7 月 14 日
.mdl files should be text files. This is different from .slx files, which are not text files (not directly.)
If you open the .mdl file with your favourite text editor, what does the first few lines look like?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2021 年 7 月 15 日
Model names must be valid MATLAB identifiers. You cannot have a dash (minus sign) as part of a model name. Rename it to myFOC_1_3.mdl
  3 件のコメント
Walter Roberson
Walter Roberson 2021 年 7 月 15 日
Sorry, I do not have access to the Motor Control Blockset.
(Also, I do not have much experience with mechanical work.)
Simulink is warning me that the function init_params does not exist, but that the function is used by the model initialization. It is possible this has to do with the products that I do not have.
Varun Nair
Varun Nair 2021 年 7 月 16 日
Hi Walter,
I can share the init_params just for your reference.

サインインしてコメントする。

その他の回答 (1 件)

Varun Nair
Varun Nair 2021 年 7 月 15 日
Hi Walter, thanks for responding.
I shall attach the error code for your reference.

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by