[Discuss-gnuradio] Getting Time Stamps From an x310 in C++

2016-07-06 Thread Robert Kraml
I have a C++ implemented flow-graph that acquires 3 channels at a sample rate of 5 MHz. There are a couple of decimation stages with the resultant n a number of 250 Hz output channels. How is the best way to access the associated time stamps. I wouldn't need every time stamp, just perhaps one ev

Re: [Discuss-gnuradio] Getting Time Stamps From an x310 in C++

2016-07-06 Thread Martin Braun
USRPs will only output timestamps at the beginning of streaming, or when time skips (e.g. after an overrun). You can keep track of time by counting samples in between timestamp tags. See the header_payload_demux block for an example of how to keep track of time. Also, check out the gr-uhd manual f

Re: [Discuss-gnuradio] Getting Time Stamps From an x310 in C++

2016-07-06 Thread West, Nathan
As of v3.7.10 there is a command port handler for forcing a new time tag. https://github.com/gnuradio/gnuradio/blob/master/gr-uhd/lib/usrp_source_impl.cc#L465 It's not strictly necessary since you can always count time yourself, but it can be useful for some things. On Wed, Jul 6, 2016 at 8:58 P

Re: [Discuss-gnuradio] Getting Time Stamps From an x310 in C++

2016-07-06 Thread Robert Kraml
Thank you Martin. This one looks like it will involve some research. If I have time I'll pursue it. In the meantime if anyone has some C++ example code that shows how an application might extract time tags, I would be grateful. -Bob On 7/6/2016 5:58 PM, Martin Braun wrote: USRPs will only

Re: [Discuss-gnuradio] Getting Time Stamps From an x310 in C++

2016-07-07 Thread Martin Braun
On 07/06/2016 11:34 PM, Robert Kraml wrote: > Thank you Martin. > > This one looks like it will involve some research. If I have time I'll > pursue it. In the meantime if anyone has some C++ example code that > shows how an application might extract time tags, I would be grateful. The header_pa