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: Ujala Qasim
Subject: Re: [Discuss-gnuradio] USRP data sample values incorrect
Date: Mon, 25 May 2009 12:53:48 +0600

I made the change and I am still getting the same values.

On Mon, May 25, 2009 at 12:41 PM, Eric Blossom <address@hidden> wrote:
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]