[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-discuss
Subject:    Re: [Discuss-gnuradio] UHD Interface - Difference between num samps rx
From:       Josh Blum <josh () ettus ! com>
Date:       2011-01-27 18:08:02
Message-ID: 4D41B482.90001 () ettus ! com
[Download RAW message or body]



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic