Modelización, Simulación y Pruebas en Simulink: Luis López
Modelización, Simulación y Pruebas en Simulink: Luis López
pruebas en Simulink
Luis López
Does running the generated embedded code match running the model?
2
Testing to date…
Create harness models
– to exercise model references or subsystems
3
Simulink Test Overview
1. Test Harnesses 2. Test Sequence Block 3. Test Manager
• Synchronized, simulatable test • Inputs and assessments based on logical, • Author, execute, manage test cases
environment temporal conditions • Review, export, report
Main Model
Component
under test
Test Harness
4
Creating Test Harnesses
5
6
But what if…
7
8
Release Notes – Test Harnesses
9
Test Sequence / Test Assessment
block
10
Release Notes – Test Sequence
12
Simulation Testing
Equivalence Testing
– Do these models match? Does generated code match this model?
13
Create a baseline test
14
15
Create a test
for multiple parameter values
16
17
Test Iterations
18
Reporting
19
20
Release Notes – Test Manager
21
Extend requirements-based tests
to achieve full coverage
22
23
A file is modified;
24
25
Simulink Test... makes testing easier...
Flexible
– Ease authoring different types of test
– Desktop or real-time
Scalable
– Hierarchical
– Integration with Parallel Computing Toolbox
26
27