[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] MIMO source - bursts
From: |
Zohair |
Subject: |
Re: [Discuss-gnuradio] MIMO source - bursts |
Date: |
Sun, 8 Aug 2010 07:46:02 -0700 (PDT) |
Eric,
Thanks for the note. I have solved the printing issue now.
I have modified the work function (MIMO source) I posting below:
-------------------
int work( int noutput_items, gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items ){
set_streaming(true);
uhd::rx_metadata_t metadata;
int size = _dev->get_device()->recv(output_items, noutput_items ,
metadata, _type, uhd::device::RECV_MODE_FULL_BUFF) ;
printf("size before: %i\n",size);
while (size ==0){
set_streaming(true);
size = _dev->get_device()->recv(output_items, noutput_items ,
metadata,
_type, uhd::device::RECV_MODE_FULL_BUFF);
printf("size after: %i\n",size);
}
return size ;
}
------------------
however, the size is not accurately 1000 as I requested in the
_set_streaming function. sometimes it's much higher and sometimes much
lower.
1- Is there any hazards in this modification?
2- I have no interpretation for the in accuracy of getting 1000 samples,
any clue about this? here's a sample of what I get;
size before: 315
size before: 1685
size before: 1000
size before: 1000
size before: 315
size before: 1685
size before: 1000
size before: 1000
size before: 415
size before: 1585
size before: 1000
size before: 1000
size before: 415
size before: 1585
size before: 0
size after: 0
size after: 1000
size before: 1000
size before: 515
Waiting for your response.
Regards,
Zohair
--
View this message in context:
http://old.nabble.com/MIMO-source---bursts-tp29336824p29380424.html
Sent from the GnuRadio mailing list archive at Nabble.com.