简体   繁体   English

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

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

How can I calculate the average power of a signal within a certain bandwidth and store that value in a variable that I can reference for later? 如何计算某个带宽内信号的平均功率,并将该值存储在我可以参考的变量中?

For example, I have a low pass filter 15kHz wide, I want to know if there's a tool in GNU Radio Companion that will allow me to calculate the average power over a certain time to see if the power level passes a threshold. 例如,我有一个15kHz宽的低通滤波器,我想知道GNU Radio Companion中是否有一个工具可以让我计算一段时间内的平均功率,看看功率水平是否超过阈值。

The power of a digital signal 数字信号的力量 X [t]的 is simply 很简单 ABS(X)² . Thus in order to do the following: 因此,为了做到以下几点:

calculate the average power 计算平均功率

  • use the "complex to magnitude square" block to convert your signal to signal power 使用“complex to magnitude square”块将信号转换为信号功率

over a certain time 过了一段时间

  • use the "moving average" block to calculate the moving average of a specific time slice 使用“移动平均”块来计算特定时间片的移动平均值

see if the power level passes a threshold 查看功率水平是否超过阈值

  • use the "threshold" block to calculate... you guessed it, the threshold. 使用“阈值”块来计算......你猜对了,门槛。

Have you read the tutorials? 你读过这些教程吗? http://tutorials.gnuradio.org http://tutorials.gnuradio.org

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM