[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Change frequency in USRP source automatically
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Change frequency in USRP source automatically |
Date: |
Mon, 14 Mar 2016 10:18:18 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
Yan,
check the PMT manuals. cons() takes 2 PMTs as input.
Cheers,
Martin
On 03/14/2016 09:09 AM, Yan Huang wrote:
> Hi all,
>
>
>
> I want to change the frequency in “USRP source” automatically, for
> example 2.37GHz-2.43GHz with each time stepping 2MHz.
>
>
>
> 1. As you know, the USRP source has an input message port, so I want to
> connect it to a “Message strobe” to control the frequency change. But
> after I see [1][2], I write PMT type commands in “Message PMT” in
> “Message Strobe” as:
>
> pmt::cons(“freq”,2.4e9)
>
> it comes up error “invalid syntax(<string>,line 1)”, so I don’t know how
> to further stepping the frequency.
>
> 2. If I use the “Message Strobe” to define frequency, what can I put in
> the “frequency” in “USRP source” block? Put it as 0?
>
>
>
> [1] https://gnuradio.org/doc/doxygen/page_uhd.html#uhd_command_syntax
>
> [2]
> https://gnuradio.org/doc/doxygen/page_msg_passing.html#msg_passing_commands
>
>
>
> Many thanks ,
>
>
>
> Yan
>
>
>
>
>
> This message and any attachment are intended solely for the addressee
> and may contain confidential information. If you have received this
> message in error, please send it back to me, and immediately delete it.
>
> Please do not use, copy or disclose the information contained in this
> message or in any attachment. Any views or opinions expressed by the
> author of this email do not necessarily reflect the views of the
> University of Nottingham.
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system, you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
- [Discuss-gnuradio] Change frequency in USRP source automatically, Yan Huang, 2016/03/14
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically,
Martin Braun <=
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Yan Huang, 2016/03/14
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Martin Braun, 2016/03/14
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Yan Huang, 2016/03/15
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Timothée COCAULT, 2016/03/15
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Yan Huang, 2016/03/15
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Timothée COCAULT, 2016/03/15
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Yan Huang, 2016/03/15
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Timothée COCAULT, 2016/03/15
- Re: [Discuss-gnuradio] Change frequency in USRP source automatically, Yan Huang, 2016/03/16