That fixed it.

Thanks!
Ilya

-----Original Message-----
From: Eric Blossom [mailto:e...@comsec.com]
Sent: Thursday, September 17, 2009 2:30 PM
To: Chukhman, Ilya A.
Cc: discuss-gnuradio@gnu.org
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


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

Reply via email to