Test von Modellkomponenten
Analysieren und simulieren Sie referenzierte Modelle, Subsysteme oder atomare Teildiagramme in einem Modell. Isolieren Sie ein Subsystem oder ein referenziertes Modell zum Testen, indem Sie es in ein Harnisch-Modell extrahieren. Überwachen Sie Zeitsignale in Ihrem Modell während der Simulation gemäß den Spezifikationen, die Sie den Blöcken zuweisen. Konstruieren Sie Signal-Verifikationen und wenden Sie diese selektiv auf der Grundlage der Simulations-Eingabegruppe an. Generieren und verpacken Sie Optionsdateien für die Analyse von Code, der aus Simulink®-Modellen generiert wurde, indem Sie Polyspace verwenden. Die gepackten Optionsdateien sind nützlich, wenn die Polyspace-Analyse des generierten Codes getrennt von Simulink durchgeführt wird. Zum Beispiel kann in einem verteilten Workflow die Polyspace-Analyse in einer Umgebung ohne Simulink durchgeführt werden. Durch Verwendung der gepackten Optionsdateien bleibt der modellspezifische Kontext des generierten Codes erhalten.
Blöcke
Assertion | Check whether signal is zero |
Check Discrete Gradient | Check that absolute value of difference between successive samples of discrete signal is less than specified value |
Check Dynamic Gap | Check that gap of possibly varying width occurs in range of signal's amplitudes |
Check Dynamic Lower Bound | Check that one signal is always less than another signal |
Check Dynamic Range | Check that signal falls inside range of amplitudes that varies from time step to time step |
Check Dynamic Upper Bound | Check that one signal is always greater than another signal |
Check Input Resolution | Check that input signal has specified resolution |
Check Static Gap | Check that gap exists in signal's range of amplitudes |
Check Static Lower Bound | Check that signal is greater than (or optionally equal to) static lower bound |
Check Static Range | Check that signal falls inside fixed range of amplitudes |
Check Static Upper Bound | Check that signal is less than (or optionally equal to) static upper bound |
Funktionen
polyspacePackNGo | Generate and package options files to run Polyspace analysis on code generated from Simulink model (Seit R2020b) |
pslinkoptions | Create an options object to customize configuration of a Simulink model, generated code or a S-Function block. Use the object to specify configuration options for these Simulink objects in a Polyspace run from the MATLAB command line |
Themen
- Component Verification
Strategies for verifying functional units of your model, in isolation or in a larger system.
- Run Polyspace Analysis on Generated Code by Using Packaged Options Files
Generate Polyspace options files from a Simulink model, and use these options files to analyze generated code by using Polyspace.
- Analyze Code Generated as Standalone Code in a Distributed Workflow
Tutorial showing Polyspace analysis of standalone generated code by using packaged options files in a distributed workflow.