summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/selector_impl.cc
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-08-14 15:00:19 +0200
committerMichael Dickens <michael.dickens@ettus.com>2020-09-10 14:18:14 -0400
commit2ead71c2486bc9ce49801003985c29d73fcf4aa5 (patch)
tree352fef9abe1489e3b21c5197e2863791daf9b914 /gr-blocks/lib/selector_impl.cc
parent9e4836dc10b2a6ca537d8c290ac668d94692cbe4 (diff)
uhd: uhd_fft: Add support for --power argument
This enables absolute power support for uhd_fft. For example: uhd_fft --power -20 --args [...] will run uhd_fft with all the usual settings, but will set the gain such that the reference power level is -20 dBm. The y-axis will be labeled differently ("RX Power Level (dBm)") and the gain slider will be replaced by a power reference level slider. Reading the actual received power from the display requires some DSP knowledge. First, the choice of window will move energy into sidelobes, and of course, scalloping loss plays a role. By choosing a boxcar window, and moving the signal close to the center of a bin, it is possible to measure the power of a single tone, assuming the USRP has been previously calibrated. A more accurate y-label would be "dBm per FFT bin after FFT processing" but that is considered a bit unwieldy. The y-axis scaling is achieved by throwing in a multiplier that moves a full-scale signal to the corresponding power value, and using the recently introduced features to normalize windows. That means scaling the reference power will be visible in the scope plot, but not in the FFT plot unless the signal starts to clip.
Diffstat (limited to 'gr-blocks/lib/selector_impl.cc')
0 files changed, 0 insertions, 0 deletions