Great! Thanks. I tried to import time and it works. Now I just have to see if this is sufficient for my sample gather timing or I still have to get the timestamp of the first sample using metadata and such.
LD -----Original Message----- From: Marcus D. Leech [mailto:mle...@ripnet.com] Sent: Friday, January 04, 2013 4:15 PM To: LD Zhang; Discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] How do I capture of the time of USRP N210 samples with host computer system time? On 01/04/2013 07:03 PM, LD Zhang wrote: > Hello, > > I tried the following command in python: > >> python: >> usrp_source.set_time_now(uhd.time_spec_t(time.time()) >> > It doesn't seem to work. Looks like the "time.time()" is wrong? Looked > up an earlier example: > > set_time_now(uhd::time_spec_t(0.0), 0) > > The syntax looks different. But this may be doing something different > from my intention which is to sync the USRP time to the host system > time. I am still searching for the right syntax for this command. Any > help is appreciated. > > LD > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > You'll have to put an: import time In your python -- Marcus Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio