You can compare results between your model and generated code by running equivalence tests in different environments, such as model simulation and SIL, PIL, or HIL execution. Equivalence tests are sometimes referred to as back-to-back tests. To automatically create test cases and test harnesses, you can use the Test for Component wizard.
Create and run an equivalence test to compare normal simulation and SIL/PIL code generation output.
Detect code errors, generate code metrics, test code and model equivalence, test code against requirements.
Perform SIL verification programmatically by using test harnesses and the Simulation Data Inspector.
Create a real-time application, download it to the target, execute the test, and assess results.
Run real-time tests based on desktop test cases that use external inputs.
Use a simulation test case to test an anti-lock brake system for simulation run-time errors.
Order in which models load, and test cases, iterations, and callbacks run.