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

조회 수: 11 (최근 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 CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by