Programmatic Code Generation Verification
With the Code Generation Verification (CGV) API, you can:
Run the model in different simulation modes, including software-in-the-loop (SIL) and processor-in-the-loop (PIL).
Compare results from different simulations.
Test the numerical equivalence of your model and generated code for a given set of inputs. The completeness of the input data that you provide to the CGV API determines the validity of your tests.
金宝app®Test™is a separate product that provides additional capabilities for SIL and PIL testing, for example, test sequence construction and test management.
Classes
cgv.CGV |
Verify numerical equivalence of results |
cgv.Config |
Check and modify model configuration parameter values |
Topics
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.
Verify Numerical Equivalence Between Two Modes of Execution of a Model
An example that uses the CGV API to verify numerical equivalence between normal and SIL mode simulations of the rtwdemo_cgv model.