Create Test Harness with Outputs mapped to Inputs

8 visualizaciones (últimos 30 días)
Samy Alkhayat
Samy Alkhayat el 23 de Sept. de 2025 a las 18:46
Respondida: Manikanta Aditya el 30 de Sept. de 2025 a las 3:48
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
Manikanta Aditya hace 16 minutos
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.

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by