The Generate Interface command is used to generate the .c and .h files that are needed for user added code.
From the Simulation Profile menu, select Execute > Generate Interface.
Creates the header file for the C code. This is added to the prt directory of the workarea.
Note: The the Generate Interface command can also be accessed from the Simulation Execution dialog box by selecting Actions > External Code > Generate Interface from the Simulation Profile menu.