https://au.mathworks.com/help/simulink/slref/fmudialog.createenumtype.html
fmudialog.createEnumType - Generate all enumeration classes required for FMU input or output ports...
This MATLAB function generates all the enumeration classes required for input or output ports of the specified FMU.