[Top][All Lists]

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

Re: [Discuss-gnuradio] I & Q samples in a source module

From: Marcus Müller
Subject: Re: [Discuss-gnuradio] I & Q samples in a source module
Date: Sat, 09 May 2015 13:11:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Hi Y,

I set noutput_items to 512
no, noutput_items is the maximum number you're *allowed* to produce, it doesn't change anything if you set it to anything. You just return the number of items you've produced at the end of your work (or general_work) function. Make sure to not write more items than noutput_items allows you to do!

If you're returning 512, this tells the scheduler you've produced 512 *items* -- I don't know what your block's output signature looks like, but an item has the size of 2x 16bit, it's right.

Best regards,

On 05/09/2015 06:42 AM, Yile Ku wrote:
My source modules has 16-bit I & Q samples that are interleaved: I,Q,I,Q,I,Q... as signed 16 bit values.  I generate 512 pairs at a time in my work function (C++).   I set noutput_items to 512 and copy I and Q out 512 times to the output_items variable in the work function.  Is this the correct format of data that subsequent modules can expect?    I use the IShort_to_Complex module to convert the samples for subsequent modules. 


Discuss-gnuradio mailing list

reply via email to

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