discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] OOT Module Not Working Properly


From: Tellrell White
Subject: [Discuss-gnuradio] OOT Module Not Working Properly
Date: Fri, 12 Jan 2018 02:47:28 -0500

Hello Guys

I'm creating a customized block in the GNU Radio framework using python that takes in a number of input items and once that number of input items surpasses a certain number, 1024 of the input items are taken and stored into an array, and then those items are converted to dB and lastly compared to a threshold value, 5 in this case. If any of the values are greater than the threshold value, a message is printed indicating a signal is present, and if none of the values are greater than 5, this is indicated with a message stating "No signal is present".

In the flow graph attached, I'm using a cosine source and a gaussian noise source to test my block in two different scenarios.

In scenario 1, I run the flow graph with both signal sources and I expect to receive a message stating "A signal is present" because the power of the signal will be greater than the threshold.

In scenario 2, the cosine source is disabled and only the noise source is runing. In this scenario I expect to get a message indicating no signal is present because the calculated power will be lower than the threshold.

Scenario 1 works, however, scenario 2 doesn't work no matter how high I raise the threshold value and, at this point, I'm not quite sure as to why.

Any help would be appreciated. Both the .py script for the oot block and the .grc file are included.

Tellrell

Attachment: Ener_detec.py
Description: Binary data

Attachment: ener_dtec.grc
Description: Binary data


reply via email to

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