Contenuto principale

Simulazione Software-In-the-Loop

Testare il codice generato sul computer di sviluppo

Una simulazione Software-In-the-Loop (SIL) compila il codice sorgente generato ed esegue il codice come processo separato sul computer host. Confrontando i risultati della simulazione normale con quelli della simulazione SIL, è possibile verificare l'equivalenza numerica tra il modello e il codice generato. Durante una simulazione SIL, è possibile acquisire metriche relative alla coverage del codice e al tempo di esecuzione per il codice generato.

App

SIL/PIL ManagerVerify generated code

Argomenti

Risoluzione dei problemi

Debug Generated Code During SIL or PIL Simulation

Use a debugger to understand the behavior of generated code.

View SIL and PIL Files in Code Generation Report

Produce a code generation report and static code metrics that cover SIL and PIL files.

Numerical Consistency of Model and Generated Code Simulation Results

Determine whether model and generated code simulation results are numerically consistent. Investigate discrepancies.

Esempi in primo piano