Software-in-the-Loop-Simulation
Bei einer Software-in-the-Loop-Simulation (SIL) wird der generierte Quellcode kompiliert und als separater Prozess auf Ihrem Hostcomputer ausgeführt. Durch den Vergleich normaler und SIL-Simulationsergebnisse können Sie die numerische Äquivalenz Ihres Modells mit dem generierten Code testen. Während einer SIL-Simulation können Sie die Codeabdeckung und die Ausführungszeit-Metriken für den generierten Code erfassen.
Apps
| SIL/PIL Manager | Verify generated code |
Themen
- SIL and PIL Simulations
An overview of software-in-the-loop (SIL) and processor-in-the-loop simulations (PIL).
- Choose a SIL or PIL Approach
Test code generated from top models, referenced models, and subsystems.
- Configure and Run SIL Simulation
Set up and run top-model SILand Model block SIL simulations.
- Unit Test Subsystem Code with SIL/PIL Manager
Perform unit testing on atomic subsystem by using SIL/PIL Manager.
- SIL/PIL Manager Verification Workflow
A simplified workflow for verifying generated code.
- Simulation Mode Override Behavior in Model Reference Hierarchy
How the simulation mode of the top model or parent model determines the simulation behavior of a model hierarchy.
- SIL and PIL Limitations
Modeling and code generation features that are not supported or partially supported by SIL and PIL simulations.
Fehlersuche
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.
