|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] [USRP-users] changing variable value during runtime |
Date: | Mon, 30 Jun 2014 23:03:30 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Hi Berkyuim, I think you mixed up the GNU Radio discuss and the usrp-users mailing list; I've included the GNU Radio list in my reply, so follow up to that[1] There is something called function probes in GNU Radio, and it kind of does what you want, if you want to periodically poll the value of some function. However, what you more likely want to do is actually implement some application logic, and that is usually the point where you start writing your own blocks in python or C++. With best regards, Marcus Müller [1] if you haven't, sign up at https://lists.gnu.org/mailman/listinfo/discuss-gnuradio On 30.06.2014 22:46, berkyuim--- via
USRP-users wrote:
Hello, I would like to know how to be able to change the value of a variable during run time after running gnuradio companion (or the python code generated from the gnuradio companion). For example, Let us say we have UHD source with center frequency of X Hz, and depending on the sum of magnitude square of the IQ samples in a given period, if the sum is greater than a threshold, change the frequency to Y Hz, elseleave it at X Hz. Thank you |
[Prev in Thread] | Current Thread | [Next in Thread] |