Dear all,

I need to use stream tags and the get_time_last_pps informations to control the 
received data storage. I am wondering how to get the stream tags in Python? 

I tried the method used in C++ and transfered in Python
    samp0_count = self.nitems_read(0)
    get_tags_in_range(rx_time_tags, 0, samp0_count, samp0_count + ninput_items)

but got the error:'gr_top_block_sptr' object has no attribute 'nitems_read'

I tried gr.tagged_file_sink to directly store the time tags with the received 
data into one data file, though I could not really see the data file created by 
this file sink block. 

How can I pull out the stream tag from the downstream corresponding with the 
received data in order to get the time or number of samples of certain received 
data?

Any suggestion will be really appreciated. Thank you so much!

Thanks,
Yan
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to