Warning: Value of enumeration member 'NULL' differs from when the enumeration was saved.
2 次查看(过去 30 天)
显示 更早的评论
Hi all
I have several Simulink.Enumeration data objects inside a Data Dictionary linked to a Simulink model. I am now working on a script that loads the Data Dictionary and does some operations with it. The first two lines of my script are this:
dd_section = getSection(Simulink.data.dictionary.open('maininv.sldd'),'Design Data');
dd_list = evalin(dd_section,'whos');
MATLAB now throws a lot of warnings on the second line of code:
Warning: Value of enumeration member 'NULL' differs from when the enumeration was saved. 'NULL' will be loaded with the new value.
Warning: Value of enumeration member 'NOTIFICATION' differs from when the enumeration was saved. 'NOTIFICATION' will be loaded with the new value.
Warning: Value of enumeration member 'NOTIFY' differs from when the enumeration was saved. 'NOTIFY' will be loaded with the new value.
(Many of these similar warnings)
This warning seems to be related to documentation I found here on Save and Load Enumerations. Namely: "When loading these enumerations, MATLAB preserves names over underlying values. If the saved named value is different from the current class definition, MATLAB uses the value defined in the current class, and then issues a warning."
I do not understand what is happening here behind the scenes. Why is MATLAB saving my Simulink.Enumeration objects somewhere?
With kind regards,
Jonas
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!