MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guida Utente Pagina 510

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 674
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 509
20 Excluding Model Objects From Coverage
20-20
protected division1
The library subsystem is a protection against division by zero and might not be relevant
in the coverage report. Exclude it from coverage for this model.
1
In the Simulink Editor, right-click either of the protected division reference blocks.
When you filter a library block, all instances of that block are filtered from coverage.
2
Select Coverage > Exclude reference library: slvnvdemo_covfilt_lib/
protected division.
The Coverage Filter Viewer opens with the new filter rule listed.
3
Click in the Rationale field for this new rule and enter text for excluding this
transition, for example, Protection against division by zero.
4
Save this rule to the current filter. Click Apply.
5
Simulate the model again and review the results.
The Filtered Blocks section of the report lists both protected division reference
blocks. No coverage is recorded for the two protected division subsystems.
In the Simulink Editor, the blocks filtered from coverage are colored grey.
Filter a Subsystem
The slvnvdemo_covfilt model uses a Constant block to drive the enable port for the
Switchable config subsystem. Because the constant is always 0, this subsystem never
executes.
Vedere la pagina 509
1 2 ... 505 506 507 508 509 510 511 512 513 514 515 ... 673 674

Commenti su questo manuale

Nessun commento