Verifica della generazione di codice in modo programmatico
Con l'API Code Generation Verification (CGV) è possibile:
Eseguire il modello in diverse modalità di simulazione, comprese le modalità Software-In-the-Loop (SIL) e Processor-In-the-Loop (PIL).
Confrontare i risultati delle diverse simulazioni.
Verificare l'equivalenza numerica tra il modello e il codice generato per un dato insieme di input. La completezza dei dati di input forniti all'API CGV determina la validità dei test.
Simulink® Test™ è un prodotto a sé stante che offre ulteriori funzionalità per i test SIL e PIL, ad esempio la creazione di sequenze di test e la gestione dei test.
Classi
cgv.CGV | Represent a model as a code generation verification object that has methods to configure and execute a model in a variety of simulation modes to automate verification of numerical equivalence of executing the generated code |
cgv.Config | Check and modify model configuration parameter values |
Argomenti
- Check Configuration
Use cgv.Config to check model settings for SIL or PIL simulation.
- Verify Numerical Equivalence with CGV
A workflow that uses the CGV API to verify numerical equivalence between normal and SIL or PIL mode simulations.