How to change simulink coverage settings in script?

2 visualizaciones (últimos 30 días)
Mark
Mark el 23 de Abr. de 2014
Respondida: Mark el 2 de Abr. de 2015
Hi, how can I change for a model simulink coverage settings using script? some set, set_params, etc.? Thank you.

Respuesta aceptada

Mark
Mark el 2 de Abr. de 2015
The solution is:
set_param(gcs, 'CovHtmlReporting', 'off');
set_param(gcs, 'CovModelRefEnable', 'off');
set_param(gcs, 'CovExternalEMLEnable', 'off');

Más respuestas (1)

Philipp Maier
Philipp Maier el 12 de Jun. de 2014
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 comentario
Mark
Mark el 13 de Jun. de 2014
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Collect Coverage for Models en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by