SIL、PIL 和 HIL 测试
您可以通过在不同环境(例如模型仿真和 SIL、PIL 或 HIL 执行)中运行等效性测试,来比较模型和生成代码之间的结果。等效性测试有时称为背靠背测试。要自动创建测试用例和测试框架,您可以使用“为模型组件创建测试”向导。
主题
- Create and Run a Back-to-Back Test
Create and run an equivalence test to compare normal simulation and SIL/PIL code generation output.
- Analyze Code and Test Software-in-the-Loop
Detect code errors, generate code metrics, test code and model equivalence, test code against requirements.
- SIL Verification for a Subsystem
Perform SIL verification programmatically by using test harnesses and the Simulation Data Inspector.
- Test Models in Real Time
Create a real-time application, download and execute it on the Simulink Real-Time target, and assess results.
- Reuse Desktop Test Cases for Real-Time Testing
Run real-time tests based on desktop test cases that use external inputs.
- Test a Simulation for Run-Time Errors
Use a simulation test case to test an anti-lock brake system for simulation run-time errors.
- Test Execution Order
Order in which models load, and test cases, iterations, and callbacks run.