discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Record time of samples


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Record time of samples
Date: Wed, 18 Apr 2012 23:31:39 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0

> Does anyone know how to record the exact arrival time of a package or the
> end of some samples using USRP? I used the following code in GRC:
> 

In a related note, you can use stream tags to get a precise timestamp of
every sample in the stream:
http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/include/gr_uhd_usrp_source.h#n59

> 
> However, this only shows the end time when I stop the flow graph manually.
> Is there a way in gnuradio that can read the system time during the running
> of the program?
> 
> For example, the flow graph begins to run and receive  --> after 1000
> samples have been received, output system time --> the program continues to
> run....
> 
> In addition, how to stop a grc flow graph automatically?

In the non-gui mode, you can set the option "run to completion". The
flow graph will exit when the flow graph is "done". Done can happen for
example when gr_head block sees all N inputs. See options block in grc.

-josh



reply via email to

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