MATLAB: Can’t I find the option to generate an example main program

simulink coder

Why can't I find the option to generate an example main program?
I used to get an example "main.c" file whenever I generated code, but the option no longer appears.

Best Answer

The Code Generation > Templates pane in the Model Configuration Parameters disappears when the System Target File is set to "grt.tlc" and not "ert.tlc". Here is the Embedded Coder Documentation page describing the example main program option.
Related Question