discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] USRP data sample values incorrect


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] USRP data sample values incorrect
Date: Sun, 24 May 2009 23:41:43 -0700
User-agent: Mutt/1.5.18 (2008-05-17)

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 Reading
> for (i = 0; i < total_reads; i++)
> {
> urx->read(&buf, bufsize, &overrun);

You are trying to pass the address of the address of the buffer.

The line should be:

  urx->read(buf, bufsize, &overrun);

Eric




reply via email to

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