User`s guide
View Coverage Results for C/C++ Code in S-Function Blocks
18-41
View Coverage Results for C/C++ Code in S-Function Blocks
This example shows how to view coverage results for the C/C++ code in S-Function blocks
in your model. To view coverage results for the C/C++ code in the blocks:
• Enable support for S-Function coverage. For more information, see “Model Coverage
for C and C++ S-Functions”.
• Run simulation and view the coverage report.
The coverage results for S-Function blocks can be viewed in the same report as the
rest of the model. For each S-Function block, the report links to a detailed coverage
report for the C/C++ code in the block.
To view the full code coverage report used in this example, follow the steps in “Coverage
for S-Functions”.
1
In the coverage report, view the coverage metrics for the S-Function block.
For more information on the coverage report format, see “Top-Level Model Coverage
Report”.
2
Select the Detailed Report link. The code coverage report for the S-Function block
opens.