Thursday, September 8, 2016

Re: [Discuss-gnuradio] Asking USRP to tag

Thanks, that is what I was looking for. I'll try it soon.


--
Usman

On Thu, Sep 8, 2016 at 10:39 PM, Nathan West-GR <nathan.west@gnuradio.org> wrote:
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.


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 <usmanhaider89@gmail.com> 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 <marcus.mueller@ettus.com> 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  Discuss-gnuradio@gnu.org  https://lists.gnu.org/mailman/listinfo/discuss-gnuradio  


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



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



No comments:

Post a Comment