I am getting a error code while opening a .mdl file
9 次查看(过去 30 天)
显示 更早的评论
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
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
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
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.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!