MATLAB SIMULINK VERIFICATION AND VALIDATION - S Guide de l'utilisateur Page 400

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 674
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 399
1 2 ... 395 396 397 398 399 400 401 402 403 404 405 ... 673 674

Commentaires sur ces manuels

Pas de commentaire