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 Center および File ExchangeCollect Coverage for Models についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by