|Subject:||Re: [Discuss-gnuradio] USRP data sample values incorrect|
|Date:||Mon, 25 May 2009 12:53:48 +0600|
On Mon, May 25, 2009 at 12:10:59PM +0600, Ujala Qasim wrote:
> Hi,I am trying to capture the data samples from the USB port of USRP using
> the following code:
> #include "usrp_standard.h"
> int buf[SAMPELS_PER_READ];
> int bufsize = SAMPELS_PER_READ*4;
> // Do USRP Samples ReadingYou are trying to pass the address of the address of the buffer.
> for (i = 0; i < total_reads; i++)
> urx->read(&buf, bufsize, &overrun);
The line should be:
urx->read(buf, bufsize, &overrun);
|[Prev in Thread]||Current Thread||[Next in Thread]|