Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-18 Thread Yan Huang
...@gmail.com] Sent: 15 March 2016 20:12 To: Yan Huang Cc: Martin Braun; discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Change frequency in USRP source automatically I know I had some problems with older versions of GNU Radio with Python block and message ports breaking my flowgraph. I don&#

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-15 Thread Timothée COCAULT
rt_pub(pmt.intern('sync'), > pmt.cons(pmt.intern("freq"), pmt.to_pmt(self.freq))) > > self.freq += self.step > > > > ### > > > > Cheers, > > Timothée. > > > > 2016-03-15 16:52 GMT+01:00 Yan Huang : > > Hi Timothée, &g

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-15 Thread Yan Huang
Many thanks, Yan From: Timothée COCAULT [mailto:timothee.coca...@gmail.com] Sent: 15 March 2016 16:24 To: Yan Huang Cc: Martin Braun; discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Change frequency in USRP source automatically The easiest way would be to create a simple Python bl

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-15 Thread Timothée COCAULT
thée COCAULT [mailto:timothee.coca...@gmail.com] > *Sent:* 15 March 2016 15:44 > *To:* Yan Huang > *Cc:* Martin Braun; discuss-gnuradio@gnu.org > > *Subject:* Re: [Discuss-gnuradio] Change frequency in USRP source > automatically > > > > Hi Yan, > > > >

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-15 Thread Yan Huang
Cc: Martin Braun; discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Change frequency in USRP source automatically Hi Yan, You should only pass only one value in the second member. Try : pmt.cons(pmt.intern("freq"), pmt.to_pmt(2.4e9)) Cheers, Timothée. 2016-03-15 12:14 GMT

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-15 Thread Timothée COCAULT
ve me an exmaple about it? > > > > Thank you a lot, > > > > Yan > > > > From: discuss-gnuradio-bounces+eexyh22=nottingham.ac...@gnu.org > > [discuss-gnuradio-bounces+eexyh22=nottingham.ac...@gnu.org] on behalf > >

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-15 Thread Yan Huang
n Sent: 15 March 2016 00:43 To: discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Change frequency in USRP source automatically Yan, simply convert "freq" and your frequency to a PMT before passing into cons(). Cheers, Martin On 03/14/2016 03:44 PM, Yan Huang wrote: > Hi Mar

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-14 Thread Martin Braun
=nottingham.ac...@gnu.org] on behalf of > Martin Braun [martin.br...@ettus.com] > Sent: 14 March 2016 17:18 > To: discuss-gnuradio@gnu.org > Subject: Re: [Discuss-gnuradio] Change frequency in USRP source automatically > > Yan, > > check the PMT manuals. cons() takes 2 PMTs as

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-14 Thread Yan Huang
2=nottingham.ac...@gnu.org [discuss-gnuradio-bounces+eexyh22=nottingham.ac...@gnu.org] on behalf of Martin Braun [martin.br...@ettus.com] Sent: 14 March 2016 17:18 To: discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Change frequency in USRP source automatically Yan, check the PMT manuals. cons()

Re: [Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-14 Thread Martin Braun
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

[Discuss-gnuradio] Change frequency in USRP source automatically

2016-03-14 Thread Yan Huang
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