MATLAB SIMULINK VERIFICATION AND VALIDATION - S Podręcznik Użytkownika Strona 400

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 674
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 399
1 2 ... 395 396 397 398 399 400 401 402 403 404 405 ... 673 674

Komentarze do niniejszej Instrukcji

Brak uwag