I am getting a error code while opening a .mdl file
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Varun Nair
le 14 Juil 2021
Commenté : Varun Nair
le 16 Juil 2021
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 commentaire
Walter Roberson
le 14 Juil 2021
.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?
Réponse acceptée
Walter Roberson
le 15 Juil 2021
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 commentaires
Walter Roberson
le 15 Juil 2021
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.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!