On Thu, Sep 8, 2016 at 7:08 PM, Pavan Yedavalli <psy2...@columbia.edu>
wrote:

> Maybe the Head block is a good option - it looks like I should put that in
> between the complex_to_mag and the file_sink blocks, right?
>

You can put it anywhere as long as you understand how much data is flowing
through that point and adjust the numbers to match.


> And there are two values, num_items and vec_length. By the documentation,
> it seems like num_items should be 1024 to match the complex_to_mag's vector
> length of 1024;
>

No, that creates an item size mismatch. A vector length means the items in
the stream are arrays of numbers, and this needs to match across all blocks
in a chain if they're not converting something (like stream_to_vector).

What you want is 1 item of vector length 1024. In order to have 1024 items
of length 1, you would have to follow the FFT with a Vector to Stream
block. But even though the file output would be the same, that wouldn't
particularly make sense as a way to treat the output of a FFT.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to