Generate code from the rate-based model, not from the model test harness. For scheduled subsystems with different discrete rates, multi-tasking is required and the resulting code has separate entry points.
Generate code for the component model. From the menu, select Code > C/C++ Code > Build Model.
Open the code generation report. From the menu, select Code > C/C++ Code > Code Generation Report > Open Model Report.