While running the sample models after code generation and compilation, the following error messages may appear.
Figure 1. null Exception
Cause 1: After C Wrapper Generation, the ports types are set to unknown by default. Configure them to ‘general’ or to specific type required. Otherwise null exception message window is displayed.
Cause 2: Type Conflicts error message is generated if Port types and C\C++ Arguments types do not match. For example, for integer array C\C++ argument, the port type must be {int}. Changing this generates a Types conflict exception. For C\C++ argument types and corresponding port types refer Table 2.