Numerical Equivalence Testing
Test numerical equivalence between your model and generated code by comparing simulation results to test bench results. You can generate a test bench during code generation. The test bench contains the model simulation output results, which are then compared to the generated code output results. The generated code output results are the results from running the generated code in the target IDE.
Verify numeric equivalence between generated code and models by using test benches.
Open generated code directly in your IDE.
Verify generated code against the original Simulink® model in your IDE by using a generated test bench.
Provide multiple signal groups as subsystem input so that multiple test benches are generated for code verification.
Workflow for using Simulink Test with PLC Coder.