Create Test Harness with Outputs mapped to Inputs

8 visualizzazioni (ultimi 30 giorni)
Samy Alkhayat
Samy Alkhayat il 23 Set 2025 alle 18:46
Risposto: Manikanta Aditya il 30 Set 2025 alle 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!

Risposte (1)

Manikanta Aditya
Manikanta Aditya il 30 Set 2025 alle 3:48
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.

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by