Is it possible to exclude blocks for coverage analysis from Simulink Test Manager in R2017b?

Technical Source
2 min readSep 2, 2021

I am wondering whether there is a way to exclude blocks for coverage analysis from the Test Manager.

Even if I right-click on a block in the model and exclude it from coverage analysis, when I run a test in the Test Manager and generate the coverage report, the block has not been actually excluded.

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

It is possible to do so by first saving your filter to a file, and then setting the filter (CovFilter) in the model.

Please refer to the following steps:

1. Open Simulink model:

>> slvnvdemo_covfilt

2. Right click on ‘Normal config (feedthrough)’ > Coverage > Exclude subsystem with all descendants

3. For Rationale, type ‘myRationale’, then Apply

4. From the Filter Viewer, click on Save Filter and save as ‘myFilter.cvf’

5. In Configuration Parameters, navigate to Coverage > Advanced Parameters > Coverage filter filename, and specify name of the filer (‘myFilter’ in this case)

This can also be done programmatically as follows:

>> set_param(gcs,’CovFilter’,’myFilter’)

SEE COMPLETE ANSWER CLICK THE LINK

https://www.matlabsolutions.com/resources/is-it-possible-to-exclude-blocks-for-coverage-analysis-from-simulink-test-manager-in-r2017b-.php

--

--

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.