discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Asking USRP to tag


From: Nathan West-GR
Subject: Re: [Discuss-gnuradio] Asking USRP to tag
Date: Thu, 8 Sep 2016 13:39:20 -0400

There's some terminology that was ambiguous and/or wrong in the initial email, and the command to do this is not well known and still fairly new.

See http://gnuradio.org/doc/doxygen/page_uhd.html#uhd_command_syntax and https://github.com/gnuradio/gnuradio/blob/master/gr-uhd/lib/usrp_source_impl.cc#L34

You can send a message to the USRP command message port that is a dict with the key "tag". The value is irrelevant. Example: "pmt.dict_add(pmt.make_dict(), pmt.intern("tag"), pmt.from_double(0.0))" in a message strobe block will cause UHD USRP Source blocks to periodically retag the stream.

On Thu, Sep 8, 2016 at 1:30 PM, Usman Haider <address@hidden> wrote:
Hi Marcus,

Sorry for being not clear. USRP source add tags on the first sample when the flowgraph starts. What can I do if I want USRP source to add tags again on any sample while the flowgraph is running? I read somewhere that there is a command for this but I do not remember. I am using N210 and X310. Thanks.


--
Usman


On Wed, Sep 7, 2016 at 5:28 PM, Marcus Müller <address@hidden> wrote:

Hi Usman,

it's not clear what you actually want to do. The USRP doesn't add tags, tags are a GNU Radio concept, and added by the USRP source. Under which condition do you need a tag, attached to which sample, containing which data? Also, which USRP are you using?


Best regards,
Marcus


On 09/07/2016 12:33 PM, Usman Haider wrote:
I want USRP to insert a new tag on the stream. I read earlier somewhere that it is possible now using some command. Can someone point to some example code ?


--
Usman


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



reply via email to

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