discuss-gnuradio
[Top][All Lists]
Advanced

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

RE: [Discuss-gnuradio] Beginner Question: python script error when doing


From: Chukhman, Ilya A.
Subject: RE: [Discuss-gnuradio] Beginner Question: python script error when doing connect()
Date: Thu, 17 Sep 2009 17:17:17 -0400

That fixed it.
 
Thanks!
Ilya
 
-----Original Message-----
From: Eric Blossom [mailto:address@hidden]
Sent: Thursday, September 17, 2009 2:30 PM
To: Chukhman, Ilya A.
Cc: address@hidden
Subject: Re: [Discuss-gnuradio] Beginner Question: python script error when doing connect()
 
On Thu, Sep 17, 2009 at 02:27:55PM -0400, Chukhman, Ilya A. wrote:
> Eric,
>
> I attempt to declare the source and the sink to both be the same type:
>
> if options.input_shorts:
>         self._u = usrp2.sink_16sc(options.interface, options.mac_addr)
>       #the last True is to restart the file when it is done
>       self._src = gr.file_source(gr.sizeof_short,filename,True)
 
Use:                               2*gr.sizeof_short
 
It's complex<short>, not short.
 
> else:
>         self._u = usrp2.sink_32fc(options.interface, options.mac_addr)
>       #the last True is to restart the file when it is done
>       self._src = gr.file_source(gr.sizeof_gr_complex, filename, True)
>
> ....
> self.connect(self._src, self._u);
>
> Is this not correct?
>
 
Eric
 
 

reply via email to

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