discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Confusion over data formatting for a waveform in


From: Martin Braun
Subject: Re: [Discuss-gnuradio] Confusion over data formatting for a waveform in QT GUI Time Sink, File Sink, and RFNoC noc_block_moving_avg
Date: Wed, 18 May 2016 13:52:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

On 05/18/2016 12:56 PM, Swanson, Craig wrote:
> gnuradio-companion.  Here are my steps and questions:

Craig,

short answer: What Ian said, and also:

>  8. Once I can agree that my 32 bit real and imaginary numbers are
>     making sense in QT GUI Time Sink and File Sink, then I have to
>     convert that 32 bit hex value into Q16 format which RFNoC
>     noc_block_moving_avg is expecting to be sent to i_tdata (64 bits=two
>     sets of real and imag) and then m_axis_data_tdata(32 bits=one set of
>     real and imag, sent twice=64 bits)?
>  9. How do I convert the 32 bit IEEE 754 data (gnuradio) into Q16 (RFNoC)?

You do *not* have to convert anything. UHD does that for you. You feed
it fc32 data (std::complex<float>) and tell the streamer to convert it
to sc16. Which is the default.

M




reply via email to

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