User`s guide
Basic Approach to Component Verification
11-7
Verify a Model Block in the Context of the Container Model
Use system analysis to verify a Model block in the context of the block's container model.
Use this technique when you analyze a closed-loop controller.
The recommended steps for system analysis:
1
Log the input signals to the component by simulating the container model.
or
Analyze the model using the Simulink Design Verifier™ software.
2
If you want to add test cases to your test suite or modify existing test cases, create a
harness model using the logged signals.
3
Add or modify test cases in the Signal Builder in the harness model.
4
Log the input signals from the Signal Builder to the test unit.
5
Repeat steps 3 and 4 until you are satisfied with the test suite.
6
Merge the test case data into a single file.
7
Depending on your goals, do one of the following:
• Execute the test cases to:
• Record coverage.
• Record output values and make sure that they equal the expected values.
• Invoke the Code Generation Verification (CGV) API to execute the test cases in
Software-in-the-Loop (SIL) or Processor-in-the-Loop (PIL) mode on the generated
code for the model.
If the test cases do not achieve the desired results, repeat steps 3 through 5.