Create Test Harness with Outputs mapped to Inputs
Mostrar comentarios más antiguos
Hello Community,
I am trying to create a test harness in Simulink. The model includes so many outputs, some of which I need to map to the corresponding inputs with unit delay. Is there a way to implement this from the harness creation wizard?
Thnak you in advance!
Respuestas (1)
Manikanta Aditya
el 30 de Sept. de 2025
0 votos
I understand that you're trying to create a test harness in Simulink where certain outputs are fed back into inputs with a unit delay, but this behavior isn't directly supported by the harness creation wizard.
Here’s how you can implement it manually after creating the harness:
1. Create the Harness Normally:
Use the wizard to generate the test harness:
- Right-click the subsystem or model → Create Test Harness.
- Choose Inputs/Outputs and Verification Logic as needed.
2. Insert Feedback Logic:
Once the harness is created:
- Open the harness model.
- For each output you want to map to an input:
- Add a Unit Delay block.
- Connect the output → Unit Delay → corresponding input.
I hope this provides you with the required information regarding your query.
Thanks.
Categorías
Más información sobre Simulink Test en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!