discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Modifying .cc file of gr_peak_detector. Change nu


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Modifying .cc file of gr_peak_detector. Change number of output ports ?
Date: Tue, 18 May 2010 11:40:20 -0700
User-agent: Mutt/1.5.20 (2009-08-17)

On Tue, May 18, 2010 at 12:29:17AM -0700, grc007 wrote:
> 
> Hello all,
> I try to modify the C++ code of the gr_peak_detector2_fb.cc.
> The peak_detector gives only 1 or 0 out if it found a peak. I want that it
> will give me also where the peak is and the amplitude of the peak.
> My questions are:
> - Which variables in the code can give me these information (amplitude, time
> of occur) ?
> - At the moment gr_peak_detector2 has only one output, how can I change it
> to get 2 or more outputs ?
> 
> Thanks in advance for for reply.
> gr007
> http://old.nabble.com/file/p28592508/gr_peak_detector2_fb.cc
> gr_peak_detector2_fb.cc 

If you look at the code, you will see that it will output either one
or two streams of information.  The first stream is the peak/no-peak
information.  The second stream (float), is the current average at
that sample.

To figure out when it occurred, you can count samples.

Eric



reply via email to

[Prev in Thread] Current Thread [Next in Thread]