Warning: Value of enumeration member 'NULL' differs from when the enumeration was saved.

6 views (last 30 days)
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

Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!