discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Capturing maximum complex value


From: John Ackermann N8UR
Subject: Re: [Discuss-gnuradio] Capturing maximum complex value
Date: Sun, 17 Mar 2019 16:51:55 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

On 3/17/19 3:45 PM, Kevin Reid wrote:

If you want to detect clipping, you want to know if the magnitude of any sample is greater than 1.0 — that's all there is to it. No FFT. My code happens to divide the stream into vectors but that is the only similarity.

Performing a FFT will not help you detect clipping. To illustrate this: suppose your signal content is a bunch of different sine waves of constant amplitude and slightly different frequencies. The maximum sample magnitude in the combined signal will occur when the phases of all those sines align, which will happen periodically. But the FFT's job is to separate out those sines into independent bins of constant amplitude. A signal that clips and one that doesn't can look very similar in the frequency domain, but in the time domain the difference is obvious because you're looking /directly at what matters/ — the sample values that are (after scaling) being sent to the DAC.

That all makes sense. But if you are looking at the raw IQ stream, with two values per sample, do you just look to see if either the I or the Q hits 1, or do you need to manipulate both components of the complex number to get a real number?



reply via email to

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