Contenuto principale

Verifica del modello

R2026b
Blocchi che verificano che i segnali rimangano entro limiti specificati durante la simulazione, come Assertion e Check Static Range

Utilizzare i blocchi della libreria Model Verification per verificare che i segnali rispettino i limiti e le condizioni specificati durante la simulazione. Quando un segnale viola una condizione di verifica, il blocco può visualizzare un avviso, arrestare la simulazione o eseguire entrambe le azioni, consentendo di individuare tempestivamente gli errori di progettazione senza dover scrivere script di test separati.

Per aggiungere blocchi da questa libreria al modello, vedere Add Blocks to Models.

Blocchi

Assertion blockAssertionVerificare se il segnale è zero
Check Dynamic Gap blockCheck Dynamic GapCheck that gap of possibly varying width occurs in range of signal's amplitudes
Check Dynamic Range blockCheck Dynamic RangeCheck that signal falls inside range of amplitudes that varies from time step to time step
Check Static Gap blockCheck Static GapCheck that gap exists in signal's range of amplitudes
Check Static Range blockCheck Static RangeCheck that signal falls inside fixed range of amplitudes
Check Discrete Gradient blockCheck Discrete GradientCheck that absolute value of difference between successive samples of discrete signal is less than specified value
Check Dynamic Lower Bound blockCheck Dynamic Lower BoundCheck that one signal is always less than another signal
Check Dynamic Upper Bound blockCheck Dynamic Upper BoundCheck that one signal is always greater than another signal
Check Input Resolution blockCheck Input ResolutionCheck that input signal has specified resolution
Check Static Lower Bound blockCheck Static Lower BoundCheck that signal is greater than (or optionally equal to) static lower bound
Check Static Upper Bound blockCheck Static Upper BoundCheck that signal is less than (or optionally equal to) static upper bound

Strumenti

Library BrowserFind and add blocks to model

Argomenti