[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Beginner Question: python script error when doing
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Beginner Question: python script error when doing connect() |
Date: |
Thu, 17 Sep 2009 11:30:11 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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