discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Losing data during long collects


From: Robert Fitzsimons
Subject: Re: [Discuss-gnuradio] Losing data during long collects
Date: Thu, 5 Jun 2008 08:28:14 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

> USRP's cfile utility cannot write my data without overruns, so I use
> my  own app which I have attached to this email in case anyone is
> interested.

Just some comments on the code:

>    int NumBytes = rx->read(
>      (char*)Buffer,
>      n*sizeof(short),
>      &Overrun);

Your code doesn't do anyting if the read returns less then
n*sizeof(short) bytes.  Is that possible within the gnuradio code?

>     pStream->write((char*)Buffer, n*sizeof(short));

Same here the write might not write all n*sizeof(short) bytes.


Robert





reply via email to

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