Worklist Item Code 542: Switch With Multiple Enums

Worklist Item Type

This Worklist Item is a MATLAB/Simulink Limitation

Cause

MATLAB does not support creating a MultiportSwitch block with values from different enumerations. This code occurs when the C code contains a switch statement with enumerators from different enums. This is valid C code but is not valid in MATLAB.

Recommend Solution

This can be resolved by changing the switch statement to use enumerators from a single enum or by replacing the switch statement with if-else statements.

Additional Resources

For further support, contact EnSoft Support at support@ensoftcorp.com