GNU Radio Companion - 如何计算信号的平均功率

GNU Radio Companion - How to calculate average power of a signal

如何计算特定带宽内信号的平均功率并将该值存储在一个变量中供以后参考?

例如,我有一个 15kHz 宽的低通滤波器,我想知道 GNU Radio Companion 中是否有一个工具可以让我计算特定时间内的平均功率,以查看功率水平是否超过阈值。

数字信号的功率 x[t] 就是 abs(x)²。因此,为了执行以下操作:

calculate the average power

  • 使用 "complex to magnitude square" 块将信号转换为信号功率

over a certain time

  • 使用"moving average"块计算特定时间片的移动平均值

see if the power level passes a threshold

  • 使用 "threshold" 块计算...您猜对了,阈值。

你看过教程了吗? http://tutorials.gnuradio.org