Cannot save model 'dfig' in the MDL file format because some of characters it contains are not valid in the current character encoding, 'US-ASCII'. Either remove these charac

4 views (last 30 days)
how to remove this problem ,i want to create the same model in old version of matlab 2010a ,and i had the same model on 2016a when i export it i get the erroe box ((Cannot save model 'dfig' in the MDL file format because some of characters it contains are not valid in the current character encoding, 'US-ASCII'. Either remove these characters from the model, or save the model in the SLX file format by using a file name with extension '.slx'.))

Answers (1)

Harsh
Harsh on 29 Aug 2024
Hi Khelifa,
The error you are facing is because of the filename with which you are trying to save the model. Check the “Choose Valid Model File Names” section in the following MATLAB documentation to understand which file names are allowed - https://www.mathworks.com/help/simulink/ug/save-models.html#btiine0
Also, if you want to use the model in an older version of MATLAB, you may check the “Export Model to Previous Version Of Simulink” section in the above mentioned documentation page.

Categories

Find more on Simulink Environment Fundamentals in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!