MATLAB: How to use enumeration defined in an external header file with EMLC without creating an enumeration class in Real-Time Workshop 7.4 (R2009b)

simulink coder

I want to use enumeration defined in an external header file with EMLC without creating an enumeration class. Is this possible?

Best Answer

The ability to define enumeration in an external header file with EMLC without creating an enumeration class is not available in Real-Time workshop 7.4 (R2009b).
The possible workaround is to write an enumeration class in MATLAB defining an enumeration from the header file and adding the custom header file to the MEX code generates using 'getHeaderFile'.