The type in variable sink needs to match the type output by the triangle source (probably you want float). Anyway, grc will not validate the flow graph if the types does not match.

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
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to