discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] File Sink Output Size Problem


From: Kevin Reid
Subject: Re: [Discuss-gnuradio] File Sink Output Size Problem
Date: Thu, 8 Sep 2016 20:27:52 -0700

On Thu, Sep 8, 2016 at 7:08 PM, Pavan Yedavalli <address@hidden> 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.

reply via email to

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