discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Question about UHD output data type.


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Question about UHD output data type.
Date: Tue, 19 Oct 2010 09:25:20 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8


I met a strange problem about UHD output data. I write the sampler
program according to rx_timed_samples.cpp and use int 16 bits as io
type as in command:

size_t num_rx_samps = dev->recv( buff, sizeof(buff), md,
uhd::io_type_t::COMPLEX_INT16, uhd::device::RECV_MODE_ONE_PACKET );

Then I checked the output data and found that samples seems to be the
int 8 bit data since the minimum step is 0.0078125, which is equal to
2 power of -7. What could be the reason for this?

The range of an int16 is +/-2^15, the minimum step is 1 because its an integer. Did you by any change change the io type to int16, but interpret the buffer as a complex float?

-josh



reply via email to

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