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


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to