|
From: | Josh Blum |
Subject: | Re: [Discuss-gnuradio] Swept FFT |
Date: | Sun, 02 May 2010 12:54:42 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9pre) Gecko/20100217 Shredder/3.0.3pre |
The variable sink sets a variable in python which will be a python float (not be confused with a float in c/c++ which is strictly 4 bytes wide). The real type on the fft sink or usrp source means that it will accept a python float or a python int.
Basically, grc will handle the type checking with the variable sink. And python is smart enough to do the right thing with the value.
So as long as your flow graph passes validation, it should just work. -Josh On 05/02/2010 12:11 PM, William Pretty Security Inc wrote:
Ok. So I followed Josh's advice and fed the output of a triangle source into a variable sink. My problem is getting the variable sink to control the usrp source. The variable sink can be of type: Complex, Float, Int, short, or byte. The usrp source is looking for a variable type Real and so is the FFT Sink. So I'm not sure what to do from here ?? _______________________________________________ Discuss-gnuradio mailing list address@hidden http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |