[USRP-users] Receiving samples with dealy at regular intervals

kamal kumar jeldi jeldi.kamal2011 at gmail.com
Thu Apr 9 15:32:52 EDT 2015


Hi,

I am working on B210 USRP board. I am playing with rx_sample_to_file code
from examples.

I want USRP board to receive samples for a span of time( in microseconds)
and stop receiving for some time and then again receive and so on..

<-- RXP---> <-NRXP->  <-- RXP---> <-NRXP-> <-- RXP---> <-NRXP-> <-- RXP--->
<-NRXP->
|--------------|                    |--------------|
|--------------|                    |--------------|                    |

legends:
RXP : receiving period
NRXP : No receiving period

Can a simple sleep() is suffice..??
while(1)
{
   rx_stream->recv(buffer,buffer.size(),meta_data,timeout)
   boost::this_thread::sleep(boost::posix_time::microseconds(NRXP_period))
}

or Can someone suggest some method.??

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20150410/88e98792/attachment-0002.html>


More information about the USRP-users mailing list