How to change simulink coverage settings in script?

조회 수: 2 (최근 30일)
Mark
Mark 2014년 4월 23일
답변: Mark 2015년 4월 2일
Hi, how can I change for a model simulink coverage settings using script? some set, set_params, etc.? Thank you.

채택된 답변

Mark
Mark 2015년 4월 2일
The solution is:
set_param(gcs, 'CovHtmlReporting', 'off');
set_param(gcs, 'CovModelRefEnable', 'off');
set_param(gcs, 'CovExternalEMLEnable', 'off');

추가 답변 (1개)

Philipp Maier
Philipp Maier 2014년 6월 12일
I have not done this myself, but I recommend looking at the Use Coverage Commands in a Script documentation. The example illustrates how setupCmd is used on test objects to load settings using the command line.
  댓글 수: 1
Mark
Mark 2014년 6월 13일
there is a possibility to run cvtest with specific test options. but setting in the model remain the same. so user can run simulation only using the scripts, and not using simulink GUI.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Collect Coverage for Models에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by