I want to locate the peaks (local maximum) of the input signal, which
is
sinc-function pulse (the 2 gray points in picture sincpuls.png, not the
neighbour peaks).
How can I use the gr_peak_detector in grc to do this ? which values I
should
give threshold_factor_rise, threshold_factor_fall, lookahead, alpha ?
If you look at my grc-picture (peakfalse.png) you will see that the
peaks
are not at the right places. They happen before the true peaks of the
sine-function. How comes this ? ( My value for threshold_factor_rise,
threshold_factor_fall, lookahead, alpha : 10,10,100,0.001 )
I want to locate the peaks (local maximum) of the input signal, which is
sinc-function pulse (the 2 gray points in picture sincpuls.png, not the
neighbour peaks).
How can I use the gr_peak_detector in grc to do this ?
If you know the exact shape of the signal you want to detect, you may
get better results with doing a correlation with the desired signal
first. Then you can use a threshold or a more sophisticated peak
detector.
If you look at my grc-picture (peakfalse.png) you will see that the peaks
are not at the right places. They happen before the true peaks of the
sine-function.
You did not show the complete flow graph in your pictures, but chances
are good that its not early, but late.
Both the FFT sink and the peak detector need some time for processing
reulting in some delay so you must not expect their output to be synced.
You need to find out somehow both delays, or at least the difference of
the delay. Try you flowgraph with other imput signals, like ramp.
Patrick
–
Engineers motto: cheap, good, fast: choose any two
Patrick S.
Student of Telemati_cs_, Techn. University Graz, Austria
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.