Create Test Harness with Outputs mapped to Inputs

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!

Answers (1)

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.

Products

Release

R2022a

Asked:

on 23 Sep 2025

Answered:

on 30 Sep 2025

Community Treasure Hunt

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

Start Hunting!