System verification starts with unit-level simulation tests. Create test harnesses to isolate different parts of your model, and define test inputs, outputs, and acceptance criteria in the test harness or Test Manager. Test components as you implement and refine your control algorithm. When the algorithm is complete, export results for regression testing and create a suite of unit-level tests.
Import standalone models as test harnesses in Simulink® Test™.
Use the Test Manager to generate and synchronize test cases based on model components and test harnesses.
Test reusable components using tests for libraries, library blocks, and linked blocks.
Establish traceability between model requirements and test inputs, expected outputs, and assessments.
Place test assessments in a library for use in multiple test harnesses.
Debug and refine a subsystem using a simple test harness.
Test a model containing code wrapped in S-functions using a test harness.
Review support for particular model elements and semantics, and automatic syntax suggestions in the Test Sequence Editor.