Find Delay Example

This example shows how to use the Find Delay block and how to tell when Correlation window length is not sufficiently large.

Open the model

The model uses a Delay block to delay a signal by 10 samples. The Find Delay block compares the original signal, from a Bernoulli Binary Generator block, with the delayed version. In this model, the Input processing parameter of the Delay block is set to Columns as channels. The model then displays the output of the Find Delay block in a scope.

If the Correlation window length is 15 samples, with 1 sample per second, the scope shows that the calculated delay is not constant over time, as you can see in the following image. You can also see that the output of chg is 0 when the value of the computed delay stays constant for longer than the Correlation window length.

This result tells you to increase the Correlation window length so that the delay output stabilizes. If you increase it to 50, the calculated delay stabilizes at 10, as shown below. The output of chg also displays 1 for the 50 seconds because in that Correlation window length, the computed delay changed at 50 seconds. But after the 50 to 100 second time window, the computed delay output is stabilized so the chg output returns to 0.