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

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 Kommentar

.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?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 15 Jul. 2021

0 Stimmen

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 Kommentare

thanks Walter, it works now.
Can you please check this models Torque and Mechanical part.
I am validating my Motor model with the Mathworks PMSM block set.
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.
Hi Walter,
I can share the init_params just for your reference.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Varun Nair
Varun Nair am 15 Jul. 2021

0 Stimmen

Hi Walter, thanks for responding.
I shall attach the error code for your reference.

Kategorien

Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by