discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] UHD Interface - Difference between num samps rx


From: Josh Blum
Subject: Re: [Discuss-gnuradio] UHD Interface - Difference between num samps rx
Date: Thu, 27 Jan 2011 10:08:02 -0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7


On 01/27/2011 07:10 AM, Isaac Gerg wrote:
> Using USRP1.
> 
> Whats the difference between using this:
>     Int32 total_num_samps = 1000;
>     uhd::stream_cmd_t
> stream_cmd(uhd::stream_cmd_t::STREAM_MODE_START_CONTINUOUS);
>     stream_cmd.num_samps = total_num_samps;

I think the confusion is that stream_cmd.num_samps is ignored when in
continuous streaming mode.

>     stream_cmd.stream_now = true;
>     m_pSdev->issue_stream_cmd(stream_cmd);
> 
> Versus using:
>        Int32 sampsPerBlock = 1000;
>         pBuff = new vector<complex<Float32> >(sampsPerBlock);
>         size_t num_rx_samps = m_pDev->recv(&(pBuff->front()), pBuff->size(),
> md,uhd::io_type_t::COMPLEX_FLOAT32,uhd::device::RECV_MODE_FULL_BUFF);
> 

In this case, the buffer always fills to pBuff->size()
-josh



reply via email to

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