Altera_Forum
Honored Contributor
17 years agoCalculate Maximum with DSP builder
Hi,
I have to calculate the delay between 2 signals so I've done a crosscorrelation. After that I have to calculate the index of the maximum for each window, I've done it in Simulink and I'm looking for a way to do it with the DSP builder tools because I will have to program a board obviously. I've posted the picture of the Simulink scheme. Do you have some ideas? This is my idea: 1) Find the 0 values with the differentiator block 2) FInd the value form the ones taken before with the highest "y"value (MAX) 3)Find the index of this value 4) Do this operation for each window of"n" points I think to have accomplished only to the point one.. :( THX http://img150.imageshack.us/img150/2751/sitovq6.jpg