MATLAB SIMULINK VERIFICATION AND VALIDATION - S Uživatelská příručka Strana 400

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 674
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 399
18 Coverage Collection During Simulation
18-34
sldv.condition
sldv.test
sldv.assume
sldv.prove
For this example, consider the following model that contains a MATLAB Function block.
The MATLAB Function block contains the following code:
function y = fcn(u)
% This block supports MATLAB for code generation.
sldv.condition(u > -30)
sldv.test(u == 30)
y = 1;
To collect coverage for Simulink Design Verifier MATLAB functions, on the Coverage
Settings dialog box, on the Coverage tab, select Simulink Design Verifier.
After simulation, the model coverage report listed coverage for the sldv.condition and
sldv.test functions. For sldv.condition, the expression u > -30 evaluated to true
51 times. For sldv.test, the expression u == 30 evaluated to true 51 times.
Zobrazit stránku 399
1 2 ... 395 396 397 398 399 400 401 402 403 404 405 ... 673 674

Komentáře k této Příručce

Žádné komentáře